我现在用presentModalViewController跳转,用 [self dismissModalViewControllerAnimated:YES];取消页面
这个方法实现了要求,但是还是疑惑原来的问题。求知道的大神告知,给个提示也好。
这个方法实现了要求,但是还是疑惑原来的问题。求知道的大神告知,给个提示也好。
解决方案 »
- 新手 sqlite3 存储图片的问题
- UITableView中的tableFooterView实现新浪微博下拉无限添加
- 请问在xcode中删除一行的快捷键是什么
- windows下使用GNUstep编译objective-c问题,神啊,救救小弟吧...
- cocos2d不用CCLabel类似的标签如何在屏幕上显示文本??
- 在windows7上利用虚拟机建立了一个Mac环境,全角和半角如何切换?
- 苹果开发
- 世界各国国家省市区(州市区)名字数据库哪里下载
- 急急急!!!
- iOS正则@报错的的问题
- Object-C中property 的retain问题
- 求XCODE5.1,IOS7.1帶證書真機調試詳細步驟
+1试了一下,longpressView最少会被调用两次,一次是手势开始,另一次是手势被 cancel,控制台会提示下面的错误信息:
nested push animation can result in corrupted navigation bar
Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.
Unbalanced calls to begin/end appearance transitions for
……所以解决方案是,修改longpressView如下:-(void)longpressView:(UIGestureRecognizer*)recognizer
{
if (recognizer.state==UIGestureRecognizerStateRecognized) {
TestDemoViewController *testDemo = [[TestDemoViewController alloc] init];
[self.navigationController pushViewController:testDemo animated:YES];
}
}
PS: 记得修改手势创建时对应的 selector
+1试了一下,longpressView最少会被调用两次,一次是手势开始,另一次是手势被 cancel,控制台会提示下面的错误信息:
nested push animation can result in corrupted navigation bar
Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.
Unbalanced calls to begin/end appearance transitions for
……所以解决方案是,修改longpressView如下:-(void)longpressView:(UIGestureRecognizer*)recognizer
{
if (recognizer.state==UIGestureRecognizerStateRecognized) {
TestDemoViewController *testDemo = [[TestDemoViewController alloc] init];
[self.navigationController pushViewController:testDemo animated:YES];
}
}
PS: 记得修改手势创建时对应的 selector我猜的也是调用问题,但是就不知道怎么解决。太感谢了