在iphone应用程序后退按钮

编程入门 行业动态 更新时间:2024-10-24 20:13:39
本文介绍了在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应用程序后退按钮

本文发布于:2023-11-24 18:53:31,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1626419.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   按钮   iphone

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!