开发者

How to send UINavigationBar Items to Back of the NavigationBar

开发者 https://www.devze.com 2023-04-10 04:33 出处:网络
I have a navigation bar with some items like below screenshot. I need to send those items to back of the navigation bar for making them visible behind the overlay but there should not be user Interact

I have a navigation bar with some items like below screenshot. I need to send those items to back of the navigation bar for making them visible behind the overlay but there should not be user Interaction like second image below after clicking开发者_如何学编程 a button:

How to send UINavigationBar Items to Back of the NavigationBar

How to send UINavigationBar Items to Back of the NavigationBar


Fake it.

Set alpha to .3, then turn set UserInteractionEnabled = NO on each of those items.

Disclaimer: never done this before, and can't test it, but this would be my first approach.


used it: [self.navigationController.navigationBar setAlpha:0.5]; [self.navigationController.navigationBar setUserInteractionEnabled:NO];

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号