I used the code below to create a button on the image navigation bar.
I see the image, but I also see the border around it. My question is how can I get rid of the border of a button. All I want to see is an image in the navigation bar, no frame.
UIBarButtonItem *settingsBtn = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"icon_prefs.png"] style:UIBarButtonItemStylePlain target:self action:@selector(openSettings:)]; [[self navigationItem] setLeftBarButtonItem:settingsBtn]; [settingsBtn release];
Thanks in advance. Any pointers, links for further reading, or examples.
iphone
butchcowboy
source share