瀏覽代碼

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