[TIMOB-5047] iOS: iOS5 barImage for nav bar does not work
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-09-30T13:59:10.000+0000 |
Affected Version/s | Release 1.7.2 |
Fix Version/s | Sprint 2011-39, Release 1.7.3, Release 1.8.0 |
Components | iOS |
Labels | module_window, os-ios5, verified-1.7.3 |
Reporter | Matthew Apperson |
Assignee | Blain Hamon |
Created | 2011-08-18T09:48:46.000+0000 |
Updated | 2014-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();
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.
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.
Tested with iPod Touch 4th gen iOS5 (9A5313e) with 1.7.3.v20110930145443, can see the barImage
iPhone 4 with iOS5 with 1.7.3.v20110930145443, can see the barImage and its working fine for me too fwiw
confirmed in 1.7.3, keeping open until this is regressed in 1.8.0
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
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
Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/4967