Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-954] cancel-button in searchbar has wrong color

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:54:46.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.4.0
ComponentsiOS
Labelsbarcolor, ios, iphone, searchbar
ReporterMarkus Gerlach
AssigneeReggie Seagraves
Created2011-04-15T02:40:05.000+0000
Updated2011-04-17T01:54:46.000+0000

Description

just check "Search Bar" in KitchenSink where barColor is set to '#000' but the button has this standard blue.
this happens only in 1.3, in 1.2 the color of the button was correctly set to the color defined in barColor.
tested with Ti developer 1.2.1, mobile sdk 1.3 and SDK 3.1.3 on simulator and device.

Comments

  1. Jeff Haynie 2011-04-15

    (from [d5c3df0ed4ebe8ec010f936f8042834620c265f8]) Closes #954: Workaround for Apple UI bug involving 'cancel' button on search bar when color is 'nil'. See lighthouse for caveats. http://github.com/appcelerator/titanium_mobile/commit/d5c3df0ed4ebe8ec010f936f8042834620c265f8"> http://github.com/appcelerator/titanium_mobile/commit/d5c3df0ed4ebe...

  2. Stephen Tramer 2011-04-15

    Okay, this is an Apple UI bug. When the color for a searchBar is 'nil', the cancel button appears with the default color, but it's necessary to have 'nil' to display the bar with UIBarStyleBlack (which is needed for transparency).

    Short version: Fixed for color 'black', will still not work for 'transparent'. That's not our fault though.

JSON Source