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
            Asked
            
        
        
            Active
            
        
            Viewed 2,752 times
        
    2 Answers
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.
 
    
    
        Community
        
- 1
- 1
- 
                    2Perhaps 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
- 
                    
- 
                    I think this answer is incorrect. I mean multitasking not UISplitViewController – RayChen Nov 23 '15 at 09:06
- 
                    
