added some code implementation

http://www.raywenderlich.com/1797/ios-tutorial-how-to-create-a-simple-ip
hone-app-part-1