[TIMOB-746] buttons in toolbar and nav bar don't support background color
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:54:07.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.3.0 |
Components | iOS |
Labels | n/a |
Reporter | Nolan Wright |
Assignee | Blain Hamon |
Created | 2011-04-15T02:35:36.000+0000 |
Updated | 2011-04-17T01:54:07.000+0000 |
Description
self-explanatory (from premium support)
Bad news: Apple's L&F completely dominates the background color for nav and toolbar items. Once a button or other object is turned into a UIBarButtonItem of any type, there's no longer a way to access its background color properties (or CALayer, or anything of the sort, it appears). Even calling -[UIBarButtonItem initWithCustomView:] overrides these original settings.
However you can apparently set background images on nav/toolbar buttons, which means that it would be possible to create a button image with the background color of your choice, and use the background caps to ensure that it sizes properly.
We currently do not support background images in nav/toolbar items; changing the request so that we can support those, and then users can 'roll their own'.
(from [4190547da9df7e53a73df9d84a5cae5c0b9a2c09]) Closes #746: Buttons now support background images. See the ticket for caveats. http://github.com/appcelerator/titanium_mobile/commit/4190547da9df7e53a73df9d84a5cae5c0b9a2c09"> http://github.com/appcelerator/titanium_mobile/commit/4190547da9df7...
CAVEATS:
A hotfix is being submitted to allow both images and backgrounds on buttons.