我对此很陌生,所以请耐心等待。我的代码中有 2 个错误需要修复。在这两种情况下,我的实例方法都没有找到:
-(IBAction)goFlipSide {
NSLog(@"goFlipSide has been called:");
FlipsideViewController *controller = [[FlipsideViewController alloc] initWithNibName:@"FlipsideViewController" bundle:nil];
controller.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentViewController:controller animated:YES];
[controller release];
}
- (void)flipsideViewControllerDidFinish:(FlipsideViewController *)controller {
[self dismissViewControllerAnimated:YES];
//This method gets fired when the user clicks done on the modal FlipsideViewController. This is different
//than the viewWillAppear.
self.navigationController.navigationBarHidden = TRUE;
/*
if (self.goViewSuccess == TRUE) {
//if the goViewSuccess boolean is set to YES - then we can load the load the goViewController
NSLog(@"goViewSuccess is YES");
[self loadGoViewController];
}
*/
}
两个未找到的实例方法是:presentViewController:
和dismissViewControllerAnimated:
。