The destination view controller maybe taking a long time to instantiate. In this case,
FormPage3ViewController
. Check your -init
method.
If that is not it, your best bet to find out what is happening is to use Instruments. Launch it from Xcode using cmd+i
. Select 'Time Profiler'. Wait a few seconds until the app has completely finished launching and run the action that causes the segue to execute. You should see something like this:
Once the segue has finished executing, you can tell Instruments to stop recording. After that, select that area of interest by clicking on the timeline and using the inspection range buttons until you have something like this:
Ensure you have the extended detail view active. It is a panel on the right that can be activated by clicking on the button marked in red:
And select the first thread of the list:
In the extended detail view you should see the heaviest stack trace happening when you execute the segue, which should give you a good idea of what could be going on. Click on the items in black (your code) in the extended detail to see more detail on the thread list or double click to get to the line of code directly: