每当我的应用程序打开,如果检查某些条件。如果失败,则向用户显示UIAlertView。xcode 4.4.1 uialertview崩溃
构建在xcode 4.4.1崩溃时执行,当[alertview show]执行时,它在xcode 4.3.2和xcode 4.5中正常工作。
这里是错过了一个重要信息的代码
NSString *appMessage = [NSString stringWithFormat:@"Error Message HERE"];
UIAlertView *appMessageAlertView = [[UIAlertView alloc] initWithTitle:nil message:NSLocalizedString(appMessage,@"Error Message") delegate:self cancelButtonTitle:nil otherButtonTitles:NSLocalizedString(@"OK", @"ok"),nil];
appMessageAlertView.delegate = self;
[appMessageAlertView show];
[appMessageAlertView release];
:坠机发生在iOS6的
在除去释放 - 不使分配/初始化不平衡?使用ARC时不允许使用 – Farcaller
版本,但这会给你一个编译错误。当不使用ARC时,版本应该在那里。 – pre
崩溃!=编译错误。我假设,如果有一个ARC问题,它也会在xcode 4.5中引人注目。 – Farcaller