Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17866] iOS 7.0.3: Translucency in navigation bar no longer works.

GitHub Issuen/a
TypeBug
Priorityn/a
StatusReopened
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelshardware, ios, navbar, simulator, translucent
ReporterEd
AssigneeUnknown
Created2013-10-25T15:06:13.000+0000
Updated2018-02-28T20:03:14.000+0000

Description

After installing the latest iOS 7.0.3 update on the iPhone, { translucent:true } on navigation bars no longer works when running the app on the device. However, it works on the Simulator. Q&A: http://developer.appcelerator.com/question/158740/ios-703-and-translucent-navigation-bar

Attachments

FileDateSize
with_barColor.png2014-10-15T15:45:53.000+000042452
without_barColor.png2014-10-15T15:45:53.000+000045874

Comments

  1. Mostafizur Rahman 2013-10-30

    Hello Ed, This is fixed in Q&A. Thanks
  2. Tim Poulsen 2014-10-15

    This ticket should not have been closed. Setting the alpha does not seem to work in my tests. Besides, if that is the new way we are directing developers to achieve this effect, our documentation does not reflect this. At minimum, this should have been turned into a docs ticket. But really, this is an SDK issue.
  3. Tim Poulsen 2014-10-15

    See the attached screens. With a Window in a NavigationWindow, Ti.UI.backgroundColor="#ffffff" in alloy.js, and the following TSS, I get a gray translucent bar. Setting barColor to "#ffffff" makes the bar opaque. From the linked Q&A ticket, setting barColor to "#72ffffff" (or any other alpha) makes no difference -- I get an opaque bar.
       "Window": {
           backgroundColor: '#fff',
           backgroundImage: '/Default.png'
       }
       "Window[platform=ios]": {
           translucent: true,
           extendEdges: [Ti.UI.EXTEND_EDGE_TOP],
           hideShadow: true,
           titleAttributes: {
               color: '#222',
               font: {
                   fontWeight: 'bold',
                   fontFamily: 'Avenir-Black',
                   fontSize: 20
               }
           }
       }
       
    If this is not an SDK bug, it is a documentation bug. The methods described there and in this Q&A thread offer no valid information on how to get a non-dark gray translucent bar. Tested with iOS8 simulator, Xcode 6, Ti SDK 3.4.0.GA

JSON Source