[TIMOB-17675] iOS8: Add support for SplitView on iPhones
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-01-30T05:19:08.000+0000 |
Affected Version/s | Release 3.4.0 |
Fix Version/s | Release 4.0.0 |
Components | iOS |
Labels | SplitWindow, TCSupport, ios8, notable, qe-testadded |
Reporter | Fokke Zandbergen |
Assignee | Vishal Duggal |
Created | 2014-09-10T14:23:43.000+0000 |
Updated | 2016-10-24T06:10:23.000+0000 |
Description
iOS8 brings the UISplitViewController to iPhones:
https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UISplitViewController_class/index.html
*This means:*
-
Ti.UI.iPad.SplitWindow
should be moved to Ti.UI.iOS.SplitWindow
- The 4-year-old [MGSplitViewController](https://github.com/mattgemmell/MGSplitViewController) that is [used](https://github.com/appcelerator/titanium_mobile/blob/58198c641d77e17d156431666e80bae732b5c130/iphone/Classes/TiUIiPadSplitWindow.m#L56) now should probably be replaced by [UISplitViewController](https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UISplitViewController_class/index.html)
I'm not sure what originally was the reason for using MG's instead of the official one?
*NOTE:* Credits to Malcolm for bringing this up.
Any update on this?
Pull pending master - https://github.com/appcelerator/titanium_mobile/pull/6601 Provides a basic implementation of SplitWindow on both iPhone and iPad idiom. Similar to the current implementation however there is no *visible* event since the masterView is always attached as long as the SplitWindow is open. Also there are no popovers. Instead masterView can now be displayed as an overlay in portrait mode. Things to note: 1. Events will not bubble from detailView/masterView to the SplitWindow object (Acts as a manager only. Not a parent) 2. Status bar visibility and orientation modes are controlled by the SplitWindow. Flags from detailView/masterView are ignored. (Acts as manager only. Not parentOrientationController) 3. Width of masterView can be controller via properties but are capped in the range [0.25, 0.5] Things still to be done 1. Autohiding status bar in landscape orientation if user so chooses. 2. Flip placement of master/detail from L-R to R-L
CR and FT passed. PR merged.