how to handle button onclick action in iPhone without using interface builder?
After you create a button write;
[myButton addTarget:self action:@selector(buttonAction) forControlEvents:UIControlEventTouchUpInside];
Edit
Also implement this in your .m file
-(void)buttonAction
{
//your implementation
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With