Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-20065

iOS Alloy Missing RightNavButton with TabGroup inside NavigationWindow

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Invalid
    • Affects Version/s: Release 5.1.0, Release 5.0.1, Release 5.0.2, Release 5.0.0, Release 5.1.1
    • Fix Version/s: None
    • Component/s: iOS
    • Labels:
    • Environment:

      iOS 9.1
      Xcode 7.1.1
      Ti.SDK 5.1.X & 5.X

      Description

      Issue Description

      When using a TabGroup within a NavigationWindow, the RightNavButton of any Window within the TabGroup do not appear in the navigation bar.

      Steps to Replicate

      -Create a new titanium alloy project
      -Open the app folder
      -Replace the index.xml file inside views folder and the index.js file inside controllers
      -Add the tabs.xml in in the views folder with the test-case code
      -Add the tabs.js in in the controllers folder with the test-case code
      -Build and run
      -Click open window
      -The RightNavButton is not showed

      Test Case

      //index.xml

      <Alloy>
      	<NavigationWindow id="nav">
      		<Window id="win" backgroundColor="#fff">
      			<Button onClick="open">Open Window</Button>
      		</Window>
      	</NavigationWindow>
      </Alloy>
      

      //index.js

       
      $.nav.open(); 
       
      function open(){
      	var view = Alloy.createController("tabs").getView();
      	
      	$.nav.openWindow(view);
      }
      

      //tabs.xml

      <Alloy>
      	<TabGroup id="tabGroup" navBarHidden=false>
      			<Tab title="one">
      				<Window backgroundColor="#fff">
      					<RightNavButton id="rightButtons">
      						<Button title="push"></Button>
      					</RightNavButton>
      					<Label>Hello 1</Label>
      				</Window>
      			</Tab>
      			<Tab title="two">
      				<Window backgroundColor="#fff">
      					<Label>Hello 2</Label>
      				</Window>
      			</Tab>
      	</TabGroup>
      </Alloy>
      

      //tabs.js

      var args = arguments[0] || {};
      

        Attachments

          Activity

            People

            • Assignee:
              emerriman Eric Merriman
              Reporter:
              rramirez Ricardo Ramirez
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-20732
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code