问题描述
我实现了一个导航控制器,它有10+视图..这里通过向右滑动视图切换到下一个视图...向左滑动将带你上一页。在这里,我使用poptoviewcontroller转到热门页面。
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...
这里我使用了poptoviewcontroller的所有属性,但它可以使用任何建议。
here i used all the property of poptoviewcontroller but it doest work any suggestion.
thnks,
推荐答案
最后我解决了这个问题。但是没有使用setViewController方法。
finally i solved this issue. but not using setViewController method infact.
这里虽然pushig视图本身我在堆栈中添加了视图。即例如我想去视图A到D意味着我添加了b和c与pushviewcontroller动画:NO;和D有动画:是;
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....
这篇关于iphone,ipad Navigationcontroller popToViewController无法正常运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!