This is too broad, which is why you are getting down votes. Make sure you understand the basics in (the programmers guide)[developer.apple.com/library/content/documentation/…, then try thus tutorial, then if you still have problems post your code and specify what is not working for you. — Ali Beadle 58 secs ago