动作和输出口 IBAction IBOutlet


#import <UIKit/UIKit.h>

@interface ViewController : UITableViewController

@property (weak, nonatomic) IBOutlet UILabel *Label1;

- (IBAction)onClick:(id)sender;

@end

 为了将事件和控件联系到一起,ios引入了动作和输出口的概念:

 

posted @ 2014-12-02 19:46  Rui.peng  阅读(142)  评论(0编辑  收藏  举报