I have an app that has a UIViewController with a navigation bar up top. The nav bar has a UIBarButton on it, which is rounded rectangle. Can I make it look like a Back button of a UINavigationBar?
Hmm..I created the outlet for it @property (nonatomic,strong) IBOutlet UINavigationItem *button; but it didnt work, xcode complains because what i have is a uibarbuttonitem. Should I change the control to uibarbuttonitem or vv?
I don't understand the problem. You should not make the nav bar into a bar button item, instead you modify one of its properties.
– user529758
CommentedJun 9, 2013 at 0:54
I want the UIBarButtonItem to look like a navBar back button, the one that has a straight edge on the right but a pointy triangle tip on the left edge.
navBar.topItem.backBarButtonItem = button;
@property (nonatomic,strong) IBOutlet UINavigationItem *button;
but it didnt work, xcode complains because what i have is a uibarbuttonitem. Should I change the control to uibarbuttonitem or vv?