0

I am changing the root controllers depending on some actions. This prevents me from having a navigation controller that controls all the interactions between my views (a split view controller can only be the root controller while I need a front menu).

When I get to the split view controller, I want to get back to the main menu (done again by changing the root controller) and I have a button for that (named "main menu). I want this "main menu" button to look like a back button ? Is that possible by changing the type of the button ?

Etienne Noël
  • 5,988
  • 6
  • 48
  • 75
  • 1
    It's not a duplicate I asked if it was possible to change the type of the button. Not how to do a custom back button ! – Etienne Noël Jan 29 '13 at 16:09
  • the title makes it sound very much like a dupe but you are right. Maybe you should stress your point more, make it easier to see that you want to CONVERT one button – Daij-Djan Jan 29 '13 at 16:14

2 Answers2

0

you have to create a custom UIButton and assign it a background image similar to the UINavigationBar back button, check this other question for more details.

Community
  • 1
  • 1
tkanzakic
  • 5,499
  • 16
  • 34
  • 41
0

baritems are immutable, you remove and add them. you cannot AFAIK change them ... you CAN of course make them mutable using a custom UIView as the button's content

Daij-Djan
  • 49,552
  • 17
  • 113
  • 135