当我关闭设置时,我的应用程序崩溃了。
即使使用标准动画 ( UIModalTransitionStyleCoverVertical
) 按钮“完成”也无法正常工作。
可能出了什么问题?
-编辑-显然我在描述问题时不太准确:XCode 没有收到崩溃通知。应用程序简单地关闭。因此,在会话期间获得的成就将会丢失。
- (IBAction)BarButtonPageCurlAction:(id)sender {
IASKAppSettingsViewController *SettingsViewController;
SettingsViewController = [[[IASKAppSettingsViewController alloc] initWithNibName:@"IASKAppSettingsView" bundle:nil] autorelease];
SettingsViewController.delegate = self;
//SettingsViewController.showDoneButton = NO;
//SettingsViewController.showCreditsFooter = NO;
SettingsViewController.modalTransitionStyle = UIModalTransitionStylePartialCurl;
UINavigationController *NavController = [[[UINavigationController alloc] initWithRootViewController:SettingsViewController] autorelease];
//[NavController setNavigationBarHidden:YES];
[self presentModalViewController:NavController animated:YES];}
我的课程文件: