1

Is it allowed to switch to different screens (like popViewController / pushViewController) when we tap the segments of segmented control? or do we have to stay in the same screen and change the views?

Narasimha Reddy
  • 754
  • 6
  • 23
  • like? a bit more information would help. – Deepak Danduprolu Jun 22 '11 at 07:09
  • I need to change the screen on tapping because client requires **back navigation** in particular format like..(if my segment control has segments named x and y. If i tap x->y->x->y back navigation should be in reverse order like y->x->y->x.For this i need to use **PushViewController** – Narasimha Reddy Jun 22 '11 at 07:12

2 Answers2

2

It depends on your requirement. But it is not a good practice to push view using a segmented control. Segmented should work like switch. For Example a tableView which display data according to segment selection.

Rahul Vyas
  • 28,260
  • 49
  • 182
  • 256
0

Definitely not disallowed but really if you are looking for a page control like behavior navigation controller might not be the best approach. However it totally depends on your use case.

Deepak Danduprolu
  • 44,595
  • 12
  • 101
  • 105