how to fire button event programatically ?
+2
A:
Your question is one of the vaguest I've seen, but I think you want something like this:
[button addTarget:self action:@selector(theMethodToBeCalled:) forControlEvents:UIControlEventTouchUpInside];
Then your method should look like this
- (void)theMethodToBeCalled:(id)sender {
}
Tom Irving
2010-05-29 18:31:31
I am using the same code for calling the button event, but i need the event for one button fired immediately when the application loads
chaitanya
2010-05-29 18:49:47
So you want to fire method when the application loads? Like [self doMethod];
Tom Irving
2010-05-29 19:01:19