An outlet describes a connection between two objects. When you want an object (such as the view controller) to communicate with an object that it contains (such as the text field), you designate the contained object as an outlet. When the app runs, the outlet you create in Xcode is restored, allowing the objects to communicate with each other at runtime.

 

  You need to add a property declaration for the string that holds the user’s name, so that your code always has a reference to it.

 

  

 posted on 2013-01-15 18:54  飞翔@骑士  阅读(152)  评论(0编辑  收藏  举报