Xcode: initial view controller for storyboard change

I started my application with the "master-detail" template. I just added two other VCs and changed the "Initial View Controller" check box to "Safety Culture MainVC" ... when I run, my application crashes ...

What do I need to do?!

This is a screenshot of the default storyboard with my other VC servers - they work when the "Navigation Controller" is by default.

It’s clear that I am a beginner, so much that you can give me is useful! Thank!

Storyboard

Debug output:

2012-06-07 10: 38: 42.812 SafetyCulture [1020: fb03] - [securityCultureMainVC topViewController]: , 0x6b7c210 2012-06-07 10: 38: 42.840 SafetyCulture [1020: fb03] * - "NSInvalidArgumentException", : '- [securityCultureMainVC topViewController]: 0x6b7c210 ' * : (0x16ae022 0x183fcd6 0x16afcbd 0x1614ed0 0x1614cb2 0x2619 0x17386 0x18274 0x27183 0x27c38 0x1b634 0x1598ef5 0x1682195 0x15e6ff2 0x15e58da 0x15e4d84 0x15e4c9b 0x17c65 0x19626 0x22ed 0x2255) terminate throwing exception (lldb)

+5
3

topViewController a UINavigationController. , , .

:

enter image description here

drag & drop safetyCultureMainVC : enter image description here

+7

-, . , , ...

, , . , , .

:

enter image description here

0

, doofishly , ViewDidLoad. segue , .

0
source

All Articles