I would like to know which ViewController is currently the active one. in other words, the one shown to the user?
Share
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.
please phrase your question a little bit more precise. from what i understand you want to do,
you could for example use notifications (Tutorial to Notifications) and broadcast the name/type/object of your current viewcontroller to your application, whenever a new controller gets created & active.
please see this similar question which has good answer as well: How can I know which ViewController is active?