DismissViewController
UIButton 导致我的应用程序在 iPod touch 上进行测试时崩溃。否则,它在 iPhone 上运行良好。iPod 版本是 4.2.1。
我收到的信息是:
dismissViewControllerAnimated:completion:]: 无法识别的选择器发送到实例 0x153720'
-(void)dismissViewDidFinish:(UIViewController *)viewController
{
[self dismissViewControllerAnimated:YES completion:nil];
}
这是 modalviewcontroller h 文件:
@class Info;
@protocol InfoDelegate
-(void)dismissViewDidFinish:(UIViewController *)viewController;
@end