 <blockquote> <p>You are attempting to present another viewController while first ViewController has yet not loaded.</p> </blockquote> <p><strong>Solution:</strong></p> <ol> <li>Call your function inside viewDidAppear() method.</li> <li>Write View Controllers Nib Name that you want to load </li> </ol>