0

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?

7
  • Sure. navBar.topItem.backBarButtonItem = button;
    – user529758
    Commented Jun 8, 2013 at 17:55
  • 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?
    – marciokoko
    Commented Jun 9, 2013 at 0:53
  • 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
    Commented Jun 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.
    – marciokoko
    Commented Jun 9, 2013 at 1:01
  • @H2CO3: Is there a way to make it look like that?
    – marciokoko
    Commented Jun 10, 2013 at 22:34

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.