How to display the UIActionSheet view from above Tab Bar Controller?

只愿长相守 提交于 2019-12-12 08:25:53

问题


I need to display the action sheet above the Tab Bar controller. I mean, I would be able to see the Tab Bar controller even the action sheet view is in visible mode.

So, Please suggest how to view from above the Tab Bar controller. Is it possible.

secondly, How to change the back ground color of action sheet and cancel button back ground colour.

Please help me

Thank You, Madan Mohan.


回答1:


To display an action sheet from a tab bar, you can call the following within the view controller that is presenting it: [actionSheet showFromTabBar:self.tabBarController.tabBar];

Note that the references explicitly state that action sheets cannot be styled. Nor is there anyway that I know of to make an action sheet appear on top of a tab bar. If you wish to step around the established interface guidelines in the manner you stated, you will probably have to create a custom view.

edit: The reason that the action sheet normally obscures the tab bar is that it is intended to be modal: either the user chooses an action, or they cancel. Either way, they shouldn't navigate away before making the choice, which your desired layout would imply.



来源:https://stackoverflow.com/questions/2774270/how-to-display-the-uiactionsheet-view-from-above-tab-bar-controller

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!