在iphone应用程序后退按钮 [英] Back button in iphone app

查看:94
本文介绍了在iphone应用程序后退按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有在给我发了同一个独立的厦门国际银行文件,另一种观点认为主视图按钮简单的单View应用程序。在这第二个观点我有一个按钮,应该送我回主视图。我不使用导航控制器。

I have a simple single View application with a button in the main view which sends me off to another view with an independent xib file. On this second view I have a button that should send me back to the main view. I'm not using a navigation controller.

谁能告诉我如何编程这个返回按钮,它会再次显示主视图?

Can anyone tell me how to program this "back" button so it will display the main view again?

在此先感谢这么多。

推荐答案

如果您称为第二的ViewController是这样的:

If you called the second viewcontroller like this:

[self presentModalViewController:secondViewController animated:YES];

您可以关闭它是这样的:

You can dismiss it like this:

[self dismissModalViewControllerAnimated:YES];

这篇关于在iphone应用程序后退按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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