Today, I upgrade my Xcode to the latest version(Version 5.1 (5B130a)) to support iOS 7.1. After doing this, I run my project in Xcode as usually. Then app crashes. I didn't change any code before upgrading the SDK version. The code is running perfectly in iOS 5.x, 6.x, 7.0.x.
I am simply presenting another view controller in the current view controller. they are both initialized by storyboard. While processing presentViewController method, it gets a error message "Thread 1: EXC_BAD_ACCESS (code=2, address=0x60)". I have checked the variables, they are both alive, not a released garbage. What's the problem with iOS 7.1??
the project is using non-ARC mechanism. Here is my code:
@property (nonatomic, retain) ArticleViewController *articleView;
....
self.articleView = [[UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil] instantiateViewControllerWithIdentifier:@"ArticleViewController"];
...
[self presentViewController:self.articleView animated:NO completion:^() {
log(@"has shown article page...");
}];
but it works fine if presenting another view by using addSubView function:
[self.view addSubView:self.articleView.view];
I really don't know why this happens.