I am creating an iOS application in which I want to perform an assignment action in button press before running the method prepareForSegue.
I created all controls using
I figured out the problem, when give then code in this way, the execution is just alphabetical order, all the other methods were getting executed before prepareForSegue because the methods come above in alphabetical order
When I renamed the quiz and settings methods as a_quiz and a_settings, it worked