Follow the instructions in this chapter to enable your app to run iOS 9 multitasking on supported iPad devices.
Note: If you absolutely must not support Slide Over and Split View, explicitly add the UIRequiresFullScreen keyword to your Xcode project's Info.plist file and assign its Boolean value to YES. You can set this in the property list editor or in the General>Deployment Info area of the target editor. Tip: Users can disable Slide Over and Split View by going to Settings > General > Multitasking. If you have everything set up correctly but still can’t use these features, you can check this setting. For more information on how to use Slide Over and Split View, you can download the Lister (for watchOS, iOS, and OS X) sample code project. In Slide Over and Split View, both the primary and secondary apps run in the foreground at the same time, and in most cases they are equal. However, only the primary app can:
In Split View, the user controls the size of your app's window. The user does this by rotating the device (as in earlier versions of iOS) or by horizontally swiping the vertical divider that separates the primary and secondary apps. The system notifies your app in the same way when both types of changes occur: changes to the window's bounds are accompanied by changes to the size classes of the root view controller. (Users moving split view controls also display app state transitions, described later in this section.) Previously, iPad's horizontal and vertical Size Classes were always "regular". With the advent of Slide Over and Split View, this has changed significantly. The following figure shows the different Size Classes your app will encounter as the user manipulates the iPad screen. In order for the app content to display correctly, your app must be adaptive. Your app settings should:
When the user moves the split control, the system calls the app delegate object using the ApplicationWillResignActive: protocol method. The system will resize your app (offscreen) to capture one or more snapshots to ensure a smooth user experience when the user finally releases the divider control. This is because it is impossible to predict the final boundaries of the app window when the user finally releases the divider control. A more complex scenario is when the device rotates and moves the divider at the same time. Make sure your app doesn’t lose data state or navigation state during the resize and snapshot process. That is, when a user resizes the app—moves a divider and moves it to its original position—and finally releases the divider, the user expects the app’s state and navigation position (including views, selections, scroll position, and so on) to be the same as when the user first touched the divider. Take advantage of the ApplicationWillResignActive: call to preserve the user’s state. For more information, read the What to Do When Your App Is Interrupted Temporarily section in App Programming Guide for iOS. If the user moves the separator control until the screen boundary makes your app disappear, the system calls the ApplicationDidEnterBackground: protocol method. For guidance on handling app state transitions gracefully, read Strategies for Handling App State Transitions in App Programming Guide for iOS. For information about handling snapshots, read Prepare for the App Snapshot and refer to Capturing a View Snapshot in UIView Class Reference. |
<<: 6 key points for social operation of mobile games
>>: iOS 9 Split Screen Multitasking: Picture in Picture (PiP) Quick Start (Chinese Version)
This is the fifth article I have written about gr...
Preface: Some of the friends who read this articl...
According to Xinhuanet on the morning of the 28th...
We are actively pursuing our careers to the next ...
Three bad habits that consumers are prone to: Not...
With the entry of the new energy vehicle concept,...
After three consecutive years of losses, Nintendo...
"Channels are king" is an iron rule in ...
I began to appreciate the beauty of ItemDecoratio...
Aipinche recently announced that it would stop se...
Bullet Messenger has been very popular recently. ...
[[129196]] In 1982, Steve Jobs, then 26, gave a s...
Regarding the use of history mode in Vue routing,...
This is Beijing Association for Science and Techn...