I'd like to confirm a few things that I have inferred from reading some other posts:
The iPhone button styles only work if you use them in a button or navigation bar (e.g. not in the body of a view).
The only real way to style a button is via a background image?
A simple button will show up as just a white area with a border?
Thanks.
1 Answer
- True, they only work when you attach the button directly to the nav bar via:
win.rightNavButton = myButton;
the only "real" way? Meh, not necessarily. There are plenty of properties on the button object, and if you want to customize a button you are attaching to a nav you can do this (might be a hack?):
var refresh = Ti.UI.createButton({ image:'refresh.png', style: Ti.UI.iPhone.SystemButton.ADD });
That will give you the predefined button, but with your own image. You can adjust with using a title/text instead of an image, and even different button styles.True.
(and these are just from my experience, correct me if I'm wrong)
Your Answer
Think you can help? Login to answer this question!