소스 검색

detect slide over

Marino Faggiana 7 년 전
부모
커밋
ef27f0c49e
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      iOSClient/Main/CCSplit.m

+ 10 - 0
iOSClient/Main/CCSplit.m

@@ -303,4 +303,14 @@
     }
 }
 
+#pragma --------------------------------------------------------------------------------------------
+#pragma mark ===== Slide Over - Split View =====
+#pragma --------------------------------------------------------------------------------------------
+
+-(void)traitCollectionDidChange:(UITraitCollection *)previousTraitCollection
+{
+    // simply create a property of 'BOOL' type
+    BOOL isRunningInFullScreen = CGRectEqualToRect([UIApplication sharedApplication].delegate.window.frame, [UIApplication sharedApplication].delegate.window.screen.bounds);    
+}
+
 @end