简体   繁体   中英

Why modal view's (presented by detail view controller) presenting view controller is split view controller?

I have a very simple split view controller with a master view controller and another detail view controller.

I put a modal segue between detail view controller and another view controller (A). When I inspect the A's presenting view controller, it is the split view controller instead of detail view controller.

My question is since the fact is detail view controller segued to A, why A's presenting view controller is split view controller?

rdelmar is right, but I was still having this occur sporadically when placing definesPresentationContext in code and setting Presentation to Current Context in the storyboard. I had to check Defines Context in the storyboard as well.

In short, the presenting view controller should have Presentation=Current Context, and a check beside Defines Context in storyboard.

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