1

I've got a TabBarController, that in it's first instance contains a ViewController for login purposes.

After a successful login another viewcontroller is pushed on.

I've noticed that if you select the tab again your returned to the top of the stack, What I would like to happen is your returned to the location you left.

Is this something that needs to be managed myself or is there a property or something to that effect that could be set.

RubbleFord
  • 7,456
  • 9
  • 50
  • 80

1 Answers1

2

You have to manage that yourself by keeping state. You'd probably want to implement shouldSelectViewController in a UITabBarDelegate to get notified when the user clicks in the tab bar.
This is sent before anything is switched around.

k1th
  • 1,332
  • 10
  • 25