简体   繁体   中英

Presenting modal view over partial page curl modal view

I have my main menu embedded in a navigation controller. The settings button performs a modal segue to show my settings page which is half a page shown using the partial page curl. Now on the settings I have a 'legal' button which I want to just display a full screen UITextView with all my legal stuff. The problem is, when I display the legal view controller using a modal segue, it displays behind the partial page curl. If I try using a push segue, it crashes because there is no Navigation controller as the settings is shown modally.

Is there a way to present a modal view over the top of a partial page curl?

Thanks

Best option I can think of is managing all your segues in your initial main menu controller .

For example, you can write a delegate method such that, if the user hits 'legal', you dismiss the modal view (from within your main menu controller's .m) using a delegate method, and then in that same method present a new modal view controller for the settings page (with it's parent being the main menu view controller, which can then have another delegate method to dismiss the legal page and present the settings menu).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM