Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9186] iOS: Implement backgroundImage for toolbars in iOS using setBackgroundImage:forToolbarPosition:barMetrics:

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsapi, community
ReporterMitchell Amihod
AssigneeUnknown
Created2012-05-18T06:20:20.000+0000
Updated2018-02-28T20:04:13.000+0000

Description

This is a suggested improvement for toolbars. iOS 5 now has ability to apply a proper BG image to toolbars. This means we can now make nice toolbars without the Glassy effect. Applied fix both to Ti.UI.iOS.Toolbar as well as to Window.setToolbar. Why no pull request? Because I'm not 100% confident in what I've done. It works for me, and is a good starting point - but someone with a more obj-c/titanium experience should probably review it. For example, you'll see some duplication. Feedback welcome! I've attached a diff of the changes I made (against the 2.0.X branch) as well as example app.js showing usage.

Attachments

FileDateSize
app.js2012-05-18T06:20:20.000+0000769
bg-flat.png2012-05-18T06:20:20.000+0000117
plus.png2012-05-18T06:20:20.000+0000269
toolbar-bgImage-patch.diff2012-05-18T06:20:20.000+00002456

Comments

No comments

JSON Source