iPhone操作系统:点击状态栏滚动到顶部不工作后删除/添加 [英] iPhone OS: Tap status bar to scroll to top doesn't work after remove/add back
问题描述
使用此方法隐藏状态列:
Using this method to hide the status bar:
[[UIApplication sharedApplication] setStatusBarHidden:YES animated:YES];
当将hidden设置为NO时,轻触滚动到顶部UIWebView,UITableView,无论如何)不再工作,需要重新启动应用程序以获得功能。
When setting "hidden" back to NO, the tap-to-scroll-to-top (in UIWebView, UITableView, whatever) doesn't work any more, and requires a restart of the app to get the functionality back.
这是一个错误(我提交了一个rdar无论如何)还是我错过了一步?我可能会期望这种行为,因为statusBar失去了触摸某种方式与相应的视图?
Is this a bug (I filed a rdar anyhow) or have I missed a step? Should I perhaps expect this behavior since the statusBar "loses touch" somehow with the respective view?
推荐答案
您可以尝试设置ScrollsToTop属性重新显示后为true:
You could try setting the ScrollsToTop property to true again after re-showing it:
[currentView setScrollsToTop:YES];
如果这不工作,你肯定只显示一个视图吗?如果有多个滚动视图,则会忽略scrollViewDidScrollToTop消息...
If that's not working, are you definitely only showing one view? If there is more than one scrolling view a scrollViewDidScrollToTop message is ignored...
这篇关于iPhone操作系统:点击状态栏滚动到顶部不工作后删除/添加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!