2011年8月9日
摘要: 关于数据的传递 Outlets 的使用步骤 1. 建立控件 比如设计界面拖入 UITextField 控件 2. ViewControler.h 中声明此Outlets @interface OutletsAndActionsViewController : UIViewController { //---declaring the outlet--- IBOutlet UITextField *txtName; } 3. ViewControler.h 中声明使用此Outlets的属性 //---expose the outlet as a property--- @property (nonatomic, retain) UITextField *txtName; 4. ViewController.m中 获取此属性值 @synthesize txtName; 5. 制作使用此变量的代码 使用方式 txtName.text 阅读全文
posted @ 2011-08-09 10:02 晃晃悠悠 阅读(135) 评论(0) 推荐(0)