Nathan Campos
Nathan Campos

Reputation: 29497

"Add" Icon for iOS Button

I'm developing a WebApp for iOS, and I need a "add" icon for my button. Something like this:

http://www.winsupersite.com/content/content/127266/reviews/mobileme_iphone_rtm_16.jpg

The button I already have, what I need is just the "add" icon like that.

Upvotes: 2

Views: 4318

Answers (1)

rckoenes
rckoenes

Reputation: 69469

UIBarButtonItem *addButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd 
                                                                           target:self 
                                                                           action:@selector(addButtonPressed:)];
self.navigationItem.rightBarButtonItem  = addButton;
[addButton release], addButton = nil;

This will get the framework to add the + icon.

Sorry I've read over the WebApp bit, just use an image.

Upvotes: 8

Related Questions