i implemented a navigation controller which has 10+ view.. here by swiping right in view am switching to the next view… swiping left will bring u the previous page. here i used poptoviewcontroller for go to prevous page.
in each of every page it has a menu to switch over to desired view. after jumping to the particular view if we swiping left will brings previously visited view instead of this i just want to go the previous page as per the menu…
here i used all the property of poptoviewcontroller but it doest work any suggestion.
thnks,
finally i solved this issue. but not using setViewController method infact.
here while pushig the view itself i added the views in stack. ie for example i want go to the view A to D means i added b and c with pushviewcontroller animated:NO; and D with animated:YES;
So it worked perfectly for me….