Q & A
- (void)viewDidLoad {
[super viewDidLoad];
UIButton* infoButton = [UIButton buttonWithType: UIButtonTypeRoundedRect];
infoButton.frame = CGRectMake(20.0f,380.0f,44.0f,44.0f);
[infoButton addTarget:self action :@selector(mostraViewInfo) forControlEvents : UIControlEventTouchUpInside];
[self.view addSubview:infoButton];
}
-(void) mostraViewInfo :(id)sender
{
NSLog(@"EQView.m : mostraViewInfo");
}
2010-08-19 12:30:14.348 Untitled32[753:207] -[Untitled32ViewController mostraViewInfo]: unrecognized selector sent to instance 0x5940a60
2010-08-19 12:30:14.350 Untitled32[753:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[Untitled32ViewController mostraViewInfo]: unrecognized selector sent to instance 0x5940a60'
*** Call stack at first throw:
(
0 CoreFoundation 0x02393919 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x024e15de objc_exception_throw + 47

[infoButton addTarget:self action :@selector(mostraViewInfo:) forControlEvents : UIControlEventTouchUpInside];
로 해주니 해결되네요.