LT: What’s the proper way for preventing a popover from showing up on 6+ landscape?
Conversation
Present a view controller using UIModalPresentationPopover.
1
yes that causes it to show up as a popover, I don’t want it to. Want it to use adaptivePresentationStyle on 6+
1
Ah, sorry, I misunderstood. Set overrideTraitCollection to have a compact horizontal size class.
1
3
yeah I tried that in my PresentationController, doesn’t seem to work. Am I supposed to do it elsewhere?
3
Replying to
Hm, that's surprising. , do you recall? Does it have to be set on the parent or something?
Replying to
as a test, I created a UIWindow subclass which returns a compact h. trait and that worked, but eek.
1
1
Setting an override on the presentation con is too late. Set it on a parent view controller of the presenter.
3
3
Show replies


