-1

I'm developing an app that required to switch between viewcontrollers but without losing the current data when multitasking !

My QUESTION :

There is a Way to get something like UITabbarcontroller but with an animation (Multitasking) thanks to a Menu ?

Juan Catalan
  • 2,299
  • 1
  • 17
  • 23
Kingofmit
  • 2,066
  • 1
  • 17
  • 22
  • This is default behaviour of UITabBarController. What are you doing that isn't working? – Fogmeister Jun 05 '15 at 08:53
  • @Fogmeister i mentioned UITabBarController because of his behaviour (i mean if i write something inside a UITextfield it Remains when i switch and turn back to the same Viewcontroller)...**my Goal** get this behaviour when i don't have a UITabbarController so as to switch from 2 or more ViewControllers thanks to a Menu that i will create ! – Kingofmit Jun 05 '15 at 13:11
  • Ah I see. Well UItabBarController does this by keeping a handle (prob an array) of its view controllers. Then when you switch it just gets the VC out of the array instead of creating a new one. If you do this you will keep data at each VC. – Fogmeister Jun 05 '15 at 13:13
  • What is "Multitasking", in your mind? – matt Jun 05 '15 at 15:31

1 Answers1

1

You can use Container View but it will serve you better if you have to manage less Container Views. Doing that with all of your view controllers won't be a good idea. However with two or three Container Views you can keep the state of each view while you move forward and backward, plus you will have to perform the animations yourself, which I'm sure you will be able to do.

Here are a couple of links that will help you out with using Container View.

Link

Link

Community
  • 1
  • 1
user1988
  • 112
  • 1
  • 5