I noticed that for some weird reason modal segue takes few seconds to perform when triggered in first place. Next time i perform a segue everything is ok.
I'm struggling with this issues for a couple of days and this is what i have discovered so far:
My code has nothing to do with it. I fully commented my code in source VC ( didSelectRow, prepareForSegue) and destination VC ( viewDidLoad, viewWillAppear )
It doesn't matter if i create a segue in Interface Builder or manually. As well it doesn't matter how the segue is called ( via performSegue or bind to some button ) ow what is the presentation type. The kind should be modal.
It doesn't matter if destination VC is embedded in Navigation Controller. And i've found no correlation between presenting VCs ( i call the segue from different VCs and it changes nothing )
Destination VC must have UI elements placed via auto-layout.
And interesting one: it doesn't matter what is the destination VC. The lag happens once through entire start, no matter what the exact segue is.
I've tried googling with almost no luck. No solutions from this question helped.
How to reproduce: create a VC with modal form sheet segue ( like i have it in my project ), embed the VC into navigation controller, place some random UI elements \w autolayout via IB ( i haven't tried setting constraints manually yet ), show it via modal segue from anywhere else.
Those arrows you see on example is my testing segues. reproduction IB screenshot
I'm using Xcode version 7.2.1 and the app is for iPad.
P.S: english is not my mother tongue, so i apologize for any possible mistakes :)