Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
What did you do to get that information? Did you read the documentation or look at sample code?

It takes way shorter time to look at the documentation than posting such questions and wait for an answer.
 
A couple of the example applications on the Apple iPhone developer center page show how to do this, as well as the programming guide.

.
 
I mean... really?

You've been posting in this forum with questions like these for weeks now. I don't mind helping out people who're struggling to get started but there are numerous examples on how to do this available on Apple's site, both in the forms of sample code and documentation.

We're not here to hand hold you through every line of code...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.