Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5047] iOS: iOS5 barImage for nav bar does not work

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2011-09-30T13:59:10.000+0000
Affected Version/sRelease 1.7.2
Fix Version/sSprint 2011-39, Release 1.7.3, Release 1.8.0
ComponentsiOS
Labelsmodule_window, os-ios5, verified-1.7.3
ReporterMatthew Apperson
AssigneeBlain Hamon
Created2011-08-18T09:48:46.000+0000
Updated2014-06-19T12:46:45.000+0000

Description

in iOS5 the barImage for a windows navbar is no longer working. This comment on StackOverflow explains the 2 ways it can be fixed, or can at least be a jumping off point - http://stackoverflow.com/questions/5575821/custom-nav-bar-styling-ios/6389991#6389991

var tabGroup = Titanium.UI.createTabGroup();

var win1 = Titanium.UI.createWindow({  
    title:'Tab 1',
    backgroundColor:'#fff',
    barImage:'barImage.png'
});
var tab1 = Titanium.UI.createTab({  
    title:'Tab 1',
    window:win1
});

tabGroup.addTab(tab1);  

tabGroup.open();

Comments

  1. kosso 2011-08-21

    Yup. I know we're not supposed to be looking at or talking about iOS5 yet - but for some reason, now it's the only way I can get Ti apps to run after updating XCode. I'm also seeing this issue. No barImage working at all.
  2. Banzai Mobile 2011-09-22

    Please fix this NOW. We have several apps out there, we cannot wait for iOS 5 to be public to get an updated 1.8.0 SDK, test everything else against regressions (1.7.2 anyone?), submit to Apple, wait for approval, all with customers looking at defaced nab bars.
  3. Natalie Huynh 2011-10-03

    Tested with iPod Touch 4th gen iOS5 (9A5313e) with 1.7.3.v20110930145443, can see the barImage
  4. Matthew Apperson 2011-10-03

    iPhone 4 with iOS5 with 1.7.3.v20110930145443, can see the barImage and its working fine for me too fwiw
  5. Thomas Huelbert 2011-10-10

    confirmed in 1.7.3, keeping open until this is regressed in 1.8.0
  6. Michael Pettiford 2011-11-09

  7. Juan Bermudez 2011-11-23

    This Bug is present in Ti 1.8. Had to Roll back to 1.7.X to get the barImage property to work. Tested on iOS 4.3
  8. Eric Merriman 2011-11-23

    Verified not occurring on iPad 2 (4.3.5) and iPhone 4s (5.0.1) using sample code above (but with image added) with the following builds: 1.8.0.v20111114103905 1.8.0.1.v20111123141857
  9. Shameer Jan 2013-12-10

    Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/4967

JSON Source