Target_Action 设计模式
2014-06-11 19:27
239 查看
@property (nonatomic, assign)id target;
@property (nonatomic, assign)SEL action;
- (void)viewDidLoad
{
Button * button =[ [ButtonView alloc] initWithFrame:CGRectMark(20, 120, 280, 140) ];
[self.view addSubView: button];
[button release];
}
button.target = self;
button.action = @select (buttonClicked);
@property (nonatomic, assign)SEL action;
- (void)viewDidLoad
{
Button * button =[ [ButtonView alloc] initWithFrame:CGRectMark(20, 120, 280, 140) ];
[self.view addSubView: button];
[button release];
}
button.target = self;
button.action = @select (buttonClicked);
相关文章推荐
- UI - Target-Action设计模式
- UI 04 target...action 设计模式
- iOS 对于Target-Action设计模式的理解
- Target/Action 设计模式
- target-action设计模式--主要为Button的方法重写
- target --action设计模式,以及delegate设计模式
- target-action设计模式
- target - action 设计模式
- UI:target-action设计模式、手势识别器
- Target-Action 设计模式
- UI笔记_target...action设计模式
- UI target/action设计模式
- Target- Action设计模式
- iOS设计模式之Target-Action
- iOS如何实现传值---target-action设计模式
- ios开发中的基本设计模式(代理,观察者,MVC,单例,策略,工厂,MVVM,原型,Target-Action,通知(notification)机制)
- target/action 设计模式
- UI基础:target...action设计模式,手势识别器.UIimageview
- target - action设计模式的思想
- Objective-C释解 Target-Action模式