I am wondering if it is possible to dynamically create segues between views. I am generating all my UI buttons programmatically. Is this possible? I haven’t been able to find anything on this topic.
Thank you
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I am not sure what you mean by “create segues”. But if you mean creating buttons which perform segue on being pushed, you can use
performSegueWithIdentifier:sender:onUIViewControllerin respective action. Docs here.If you want to transition to view that there is no segue to, I suggest directly calling
presentViewController:animated:completion:.