How to show modalviewcontroller above tabbar

Dmitriy Kalachniuk picture Dmitriy Kalachniuk · Jul 29, 2012 · Viewed 11.5k times · Source

I have tab bar and in view "A" and in "A" I have navigation controller. SO inside my navigation controller in "A" i called

[self presentModalViewController:modalView animated:YES]

But modalView shows under tab bar. How to show it above tab bar?

Answer

Sergey Kuryanov picture Sergey Kuryanov · Jul 29, 2012

Try to present modal view from UITabBarController:

[self.tabBarController presentModalViewController:modalView animated:YES];