Search code examples
objective-cviewuisegmentedcontrolpushviewcontrollerpopviewcontroller

IPhone Segmented Control Tapping


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?


Solution

  • 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.