Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17675] iOS8: Add support for SplitView on iPhones

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-01-30T05:19:08.000+0000
Affected Version/sRelease 3.4.0
Fix Version/sRelease 4.0.0
ComponentsiOS
LabelsSplitWindow, TCSupport, ios8, notable, qe-testadded
ReporterFokke Zandbergen
AssigneeVishal Duggal
Created2014-09-10T14:23:43.000+0000
Updated2016-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.

Comments

  1. Matthew Congrove 2014-11-07

    Any update on this?
  2. Vishal Duggal 2015-01-26

    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
  3. Chee Kiat Ng 2015-01-30

    CR and FT passed. PR merged.

JSON Source