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...