just a quick question. I'm updating my company's app for iOS 7 and I'm running into a couple of walls. Right now, the big one is the UIBarButtonItem. When I compile my app against iOS 7 then run the app, I get the old bar buttons.
In short, my bar button looks like this:
Instead of just the text. The application itself was originally coded on iOS 5 so we have been updating it for the last couple of years. Btw, here's how I'm adding the button:
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Done" style:UIBarButtonSystemItemDone target:nil action:nil];
Any suggestions or leads will be very much appreciated.
Thanks!
That doesn't look like a system button.
Are you sure you are not setting a custom background to the button, maybe using the UIAppearance
proxy?
maybe your have an image like background of your button'
Try this :)
UIBarButtonItem *item = [[UIBarButtonItem alloc] initWithTitle:@"Done" style:UIBarButtonItemStyleDone target:nil action:nil];
self.navigationItem.leftBarButtonItem = item;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With