presentViewController: crash on iOS <6 (AutoLayout) presentViewController: crash on iOS <6 (AutoLayout) xcode xcode

presentViewController: crash on iOS <6 (AutoLayout)


I believe this is an issue with Xcode's new interface builder. Did you happen to build your .xib using Xcode 4.5's interface builder? I've run into this same problem just now, and I think that's the problem. My app runs on iOS 6, but not anything older.

And you need to make sure you turn off Use Auto Layout for your xibs.

That can be done by:

  1. Open your xib.
  2. Go to the File Inspector tab.
  3. Find the Interface Builder Document section on the right toolbar.
  4. Uncheck the Use Auto Layout option.


ScreenShot

I had the same problem when I downloaded new XCode update and IOS6 SDK. Here's how I solved it:

Select the Interface builder file (whether xib or storyboard file) where your error occurs.In assistant editor on the right in XCode, select the first tab from the left, and there is a checkbox for option "Use Autolayout" like on the screenshot above.Uncheck the checkbox.


Nagaraja asks "How to resolve the same if we are not using xib? I ran into exactly this problem. I created a controller with a xib, and then I decided to remove the xib file. The crash did not go away. The problem was that I needed to implement

- (void) loadView

in my controller class. Once I implemented this method the problem got solved.