[TIMOB-954] cancel-button in searchbar has wrong color
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:54:46.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.4.0 |
Components | iOS |
Labels | barcolor, ios, iphone, searchbar |
Reporter | Markus Gerlach |
Assignee | Reggie Seagraves |
Created | 2011-04-15T02:40:05.000+0000 |
Updated | 2011-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.
(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...
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.