Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show modalviewcontroller above tabbar

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?

like image 728
Dmitriy Kalachniuk Avatar asked Jul 29 '12 08:07

Dmitriy Kalachniuk


2 Answers

Try to present modal view from UITabBarController:

[self.tabBarController presentModalViewController:modalView animated:YES];
like image 67
Sergey Kuryanov Avatar answered Oct 19 '22 11:10

Sergey Kuryanov


My case, the modal has a transparent background, I set modalPresentationStyle is .overFullScreen and it show at above tabbar with clear background.

like image 5
QHu91_IT Avatar answered Oct 19 '22 11:10

QHu91_IT