Well, you are setting yourself up as a UIAlertView delegate. This is correct, and this is the first step that you must take. After that, execute this method:
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex { [self moveToView]; }
Here you can also make a switch statement to see which button was pressed. But since you only have the OK button on the AlertView, this is not necessary.
Hope this helps.
Hooray!
source share