I want to get a code, that I want the selected tab index in appdelegate. I can get this in my view controller, but how can I get this in my appdelegate?
Can anybody help me out doing this?
Thanks in advance.
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.
you can use MyTabBar.selectedIndex and put in Object in AppDelegateClass..
Or if you have already TabBar Avaliable
you can use
if you need to get it in the same calss so you can use
if you want to prevent user from going to another tab you can use delegate