I’m pretty new at iOS dev, and I wonder how works this line :
[myButton addTarget:self action:@selector(doSomething:) forControlEvents:UIControlEventTouchUpInside];
I simply tried this :
- (void) doSomething : (id) sender
{
NSLog(@"Test");
}
But it doesn’t work. What am I doing wrong ?
.h file has
in .xib link the button with myButton (i.e. image)