In my iPhone project I have an unwind segue exiting to PlayView. Inside unwind function as seen below I have a timer which delays for 0.05 seconds and then executes "autoSegue" function which in turn segues to other screens. This works fine on iOS 8 but for iOS7 devices, I am having to increase this delay significantly (up to 1.0 seconds), otherwise, it gives "another segue is already in progress" error.
Is there a way to execute "autoSegue" function automatically when any previous segues have been completed?
@IBAction func unwindToPlay (sender: UIStoryboardSegue){
var del = NSTimer.scheduledTimerWithTimeInterval(0.05, target: self, selector: "autoSegue", userInfo: nil, repeats: false)
}