Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-785] Cannot use TabGroup for masterView of SplitWindow

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-07-28T16:41:50.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsios, ipad, splitwindow, tabgroup
ReporterJason Stahl
AssigneeReggie Seagraves
Created2011-04-15T02:36:21.000+0000
Updated2011-07-28T16:41:50.000+0000

Description

I am trying to use SplitWindow to create a layout with navigation in the masterView and content in the detailView. I have three groups of navigation options that I would like to separate using a TabGroup (mimics existing iPhone UI). This doesn't work well however.

The code complies and runs and works fine when an iPad or iPad Simulator is in portrait orientation when the application starts. Behavior is different when transitioning from portrait to landscape or starting in landscape depending on if you are testing using an iPad or iPad Simulator.

In the iPad simulator when I start in portrait and rotate, the application doesn't respond to the orientation change event and stays in portrait. The masterView is displayed properly in a popover when I touch the button. When I start the application in landscape it is re-oriented to portrait before application start-up.

On an actual iPad when I start in portrait and rotate, the application doesn't respond to the orientation change event and stays in portrait. The masterView is displayed properly in a popover when I touch the button. This is just like in the iPad Simulator. However, when I start in landscape the application still starts in portrait orientation, but the masterView is now the visible element.

Any help or suggestions would be much appreciated.

You can create the problem using the following code: http://pastie.org/921867">http://pastie.org/921867

This was originally posed as a question at http://developer.appcelerator.com/question/16521/why-does-my-tabgroup-in-the-masterview-of-splitwindow-behave-poorly"> http://developer.appcelerator.com/question/16521/why-does-my-tabgro...

Comments

  1. Vikramjeet Singh 2011-07-28

    Bug Scrub: Invalid. Test Case exists (on my system) Tested On: Mac OSX Lion TiMob Version: 1.7.2 TiStud Version: 1.0.2 Devices used: iPad 3.2.2 iPad2 4.3.2

JSON Source