my home page is a tabbarView,now ,I have a presentModalView Controller,and as we know modalview takes the full screen,now this view has button,on click of which I want to dismiss the modalview and select 2nd tab of my home page so how can i do it.
thanks and Regards
Ranjit
Let’s assume your TabbarController instance is in appDelegate. When you dismiss the modalView, you post a notification. Your app delegate will be observing this notification and when it receives it, it will call [myTabController setSelectedIndex:2]; Following could be the code: