呈现视图无法在iPhone中使用 [英] presenting a view not working in iphone

查看:73
本文介绍了呈现视图无法在iPhone中使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过单击Facebook应用程序中的按钮从一个页面导航到另一页面.
我正在使用

I am trying to navigate from one page to another on a button click in a facebook appliaction.
I am using

registerUser=[[RegisterPage alloc]initWithNibName:@"RegisterPage" bundle:nil];
[self presentModalViewController :registerUser animated:YES];

用于在收到来自Facebook的回复后呈现下一个视图.
但是它没有显示下一个视图.在我以前曾提出过其他观点的所有其他地方,它都可以正常工作.

for presenting the next view after getting response from facebook.
But it is not showing the next view. It works fine in all other places where I used to present other views.

有人知道这个问题吗?

推荐答案

感谢所有人的答复.我在长时间的战斗后解决了它.我只是先取消视图,然后再显示下一个视图,并将dismissmodalviewcontrollerAnimated设置为NO.[self dismissModalViewControllerAnimated:NO];nextview = [[LoginPage alloc] initWithNibName:@"LoginPage" bundle:nil];[self presentModalViewController:nextview animation:YES]; 希望这对像我这样的人有所帮助

thanks for everyones reply.i have solved it after a long fight.i just dismissed the view before pesenting the next view and set dismissmodalviewcontrollerAnimated to NO.[self dismissModalViewControllerAnimated:NO]; nextview = [[LoginPage alloc]initWithNibName:@"LoginPage" bundle:nil]; [self presentModalViewController: nextview animated:YES];hope this help someone like me

这篇关于呈现视图无法在iPhone中使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆