1

I need to add some logic when iOS app is going to start split view mode or step over, and also resign that mode? Is there any notification or delegate method to detect this? Thanks

RayChen
  • 1,417
  • 2
  • 17
  • 36

2 Answers2

0

Check if your window occupies the whole screen:

BOOL isRunningInFullScreen = CGRectEqualToRect([UIApplication sharedApplication].delegate.window.frame, [UIApplication sharedApplication].delegate.window.screen.bounds);

If false = split view or a slide over.

Check

Community
  • 1
  • 1
  • 2
    Perhaps it is pure chance that your answer is identical to http://stackoverflow.com/a/33371476/1187415 (including the unnecessary semicolon). But *if* you copy code from another answer then you must add a link to the original for proper attribution, otherwise it is considered plagiarism. – Martin R Nov 23 '15 at 09:36
-2

if you use standard navigation functions you can check

if (self.splitViewController != nil){...}

in viewDidLoad method

Igor
  • 1,537
  • 10
  • 12