I am building a app in which I am doing this hierachy:
view1controller(calls presentmodalviewcontroller method)-->view2controller(calls presentmodalviewcontroller method)-->view3controller(calls presentmodalviewcontroller)--->view4controller
I know the concept that I can always switch back from one view to another view by using dismissmodalviewcontroller method. Like i can switch from view 4 to view 3 and from view 3 to view 2. My question is that how can I switch to random view controller ? like from view 4 to view 2 or from view 3 to view 1 ? ..and I am not using navigation controller. I know I am missing a concept. Can anyone throw a light on this concept .