如何关闭通过触摸 UINavigationController 中的“添加项目”而出现的视图?

发布于 2024-08-29 20:17:28 字数 244 浏览 1 评论 0原文

我已将添加(+符号按钮)按钮添加到我的导航控制器中。
当我单击它时,会从底部出现一个视图。我添加了一个导航栏和两个按钮。

一个保存按钮和一个取消按钮。该视图有一个文本编辑框。编辑后我可以保存或取消。如果我触摸取消,我需要视图消失,就像它应该再次下降一样。

我想所有iPhone、iPodTouch用户都使用它。就像当他们触摸添加项目时,一个视图会从底部出现,当他们取消时,它会再次下降。我怎样才能在我的应用程序中以这种方式进行制作。

I have added add(+ symbol button) button to my navigation controller.
When I click it a view appears from bottom. I added a navigation bar and two buttons to it.

One save and one cancel button. And the view have one textEdit box. After editing I can save or cancel. If I touch cancel I need the view to disappear like it should go down again.

I think all iPhone , iPodTouch users use it. Like when they touch Add item then a view appears from bottom and when they cancel it goes down again. How can I make in this way in my application.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文