Browse Source

DemoRunner: Enable all orientations and disable full screen requirement on iOS to enable Slide Over and Split View features

tags/2021-05-28
ed 4 years ago
parent
commit
9eb5e38cae
3 changed files with 15 additions and 5 deletions
  1. +2
    -3
      examples/DemoRunner/Builds/iOS/Info-App.plist
  2. +10
    -1
      examples/DemoRunner/CMakeLists.txt
  3. +3
    -1
      examples/DemoRunner/DemoRunner.jucer

+ 2
- 3
examples/DemoRunner/Builds/iOS/Info-App.plist View File

@@ -41,13 +41,12 @@
<true/>
<key>UISupportsDocumentBrowser</key>
<true/>
<key>UIRequiresFullScreen</key>
<true/>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
<key>UIBackgroundModes</key>
<array/>


+ 10
- 1
examples/DemoRunner/CMakeLists.txt View File

@@ -30,7 +30,16 @@ juce_add_gui_app(DemoRunner
CAMERA_PERMISSION_ENABLED TRUE
BLUETOOTH_PERMISSION_ENABLED TRUE
FILE_SHARING_ENABLED TRUE
DOCUMENT_BROWSER_ENABLED TRUE)
DOCUMENT_BROWSER_ENABLED TRUE
REQUIRES_FULL_SCREEN FALSE
IPAD_SCREEN_ORIENTATIONS UIInterfaceOrientationPortrait
UIInterfaceOrientationPortraitUpsideDown
UIInterfaceOrientationLandscapeLeft
UIInterfaceOrientationLandscapeRight
IPHONE_SCREEN_ORIENTATIONS UIInterfaceOrientationPortrait
UIInterfaceOrientationPortraitUpsideDown
UIInterfaceOrientationLandscapeLeft
UIInterfaceOrientationLandscapeRight)

juce_generate_juce_header(DemoRunner)



+ 3
- 1
examples/DemoRunner/DemoRunner.jucer View File

@@ -123,7 +123,9 @@
<XCODE_IPHONE targetFolder="Builds/iOS" UISupportsDocumentBrowser="1" microphonePermissionNeeded="1"
cameraPermissionNeeded="1" iCloudPermissions="1" UIFileSharingEnabled="1"
customXcodeResourceFolders="../Assets" smallIcon="YyqWd2" bigIcon="YyqWd2"
iosBluetoothPermissionNeeded="1">
iosBluetoothPermissionNeeded="1" iosScreenOrientation="UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight,UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown"
iPadScreenOrientation="UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight,UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown"
UIRequiresFullScreen="0">
<CONFIGURATIONS>
<CONFIGURATION isDebug="1" name="Debug" recommendedWarnings="LLVM"/>
<CONFIGURATION isDebug="0" name="Release" recommendedWarnings="LLVM"/>


Loading…
Cancel
Save