-(void) buttonclick:(id) sender { action=[[uialertview alloc] initwithtitle:nil message:@"confirm action" delegate:self cancelbuttontitle:@"cancel" otherbuttontitles:nil]; [action addbuttonwithtitle:@"yes"]; [action show]; [action release]; } - (void)alertview:(uialertview *)action diddismisswithbuttonindex:(nsinteger)buttonindex { if (buttonindex == 1) { [self func1]; } else if (buttonindex ==0) //cancel { } }
instead of executing func1 when clicked yes on alertview, app pop registration form registration page in app.
set break point on "if (buttonindex == 1) " , follow code using step button. problem should somewhere else in program.
Comments
Post a Comment