iOS 5问题:解除模态后剪辑导航栏 [英] iOS 5 issues: Navigation bar clipped after dismissing modal

查看:121
本文介绍了iOS 5问题:解除模态后剪辑导航栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在应用程序商店中有一个不错的小应用程序,它本身也很好用。在iOS 5来到城镇之前,生活很棒。现在,我的应用程序有很多问题,我无法修复,因为我不知道发生了什么,因为我觉得它们是iOS 5问题,而不是我的问题。

I have a nice little app on the app store that does pretty well for itself. Life was great until iOS 5 came to town. Now, I have a number of issues with my app that I have no way of fixing because I have no clue what is going on, because I feel that they are iOS 5 issues, not mine.

我错过了iOS 5转换手册吗?或者他们只是为了好玩而改变一切,并希望我们找出所有复活节彩蛋的位置?

Was there an iOS 5 conversion manual I missed? Or did they just change everything for fun, and want us to figure out where all the easter eggs were?

这是我遇到的另一个问题(我已经浪费了很多时间试图修复),当我只是说我想在良好的情况下运行应用程序时,并不存在... 4.2:

Here is another issue I am experiencing (that I have wasted so much time trying to fix), that DON'T EXIST AT ALL when I simply say that I want to run the app in good ol' 4.2:

模态视图

我的应用程序是一个简单的阅读器应用程序。我有一个书阅读视图,用UIWebView显示文本。我一直在努力的功能之一是能够在阅读时记笔记。这是通过按下按钮并呈现模态视图来实现的。是的,一个模态视图。你可以做的最简单的iOS 5之前的事情。现在,当我解除我的模态视图时,只需点击取消,然后简单地关闭视图,当我回到我的阅读器视图时,顶部的导航栏被推到屏幕的一半!这不会发生在4.2中,但它出现在iOS 5中!

My app is a simple reader app. I have a book reading view that displays text with a UIWebView. One of the features I have been working on involves the ability to take notes as you read. This is achieved by hitting a button, and presenting a modal view. Yes, a modal view. The most simple pre- iOS 5 thing you could possibly do. Now, when I dismiss my modal view, just by hitting cancel, and simply dismiss the view, when I get back to my reader view, the navigation bar at the top is pushed up half way off the screen! This doesn't happen in 4.2, but there it is in iOS 5!

我该怎么做才能解决这个问题?

What can I do to get this issue resolved?

感谢您的帮助。

推荐答案

好的,我只能弄明白火灾是什么继续我将shouldAutorotateToInterfaceOrientation值设置为BOOL变量,这样当modalView返回时,它不知道状态栏的状态/大小。修正了,问题就消失了。

Ok, I was just able to figure out what in the blazes was going on. I had the shouldAutorotateToInterfaceOrientation value set to a BOOL variable, so that when the modalView was coming back, it didn't know the state/size of the status bar. Fixed that, and the problem disappeared.

这篇关于iOS 5问题:解除模态后剪辑导航栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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