Three20 TTPhotoViewController 的问题
我不确定这是否是询问或报告此问题的正确位置...但我希望这里有人可以帮助我解决以下问题
我目前正在创建一个提供多种功能的应用程序。无论如何,它还包括 Three20 提供的 TTPhotoViewController。嗯,这个控制器绝对很棒,但是在使用 TTPhotoviewcontorller 后我遇到了一些麻烦,因为从那时起所有内容都落后于我的导航栏控制器。
以下是打开视图控制器之前和之后的一些屏幕截图
之前:
< img src="https://i.sstatic.net/cgzVc.jpg" alt="之前">
之后:
http://img88.imageshack.us/之后img88/5899/foto1c.jpg
希望你们能帮助我,因为我对这些事情还很陌生。
提前致谢, 韦斯利
I am not sure if this is the right place to ask or report this... but i hope someone here can help me out with the following problem
I'm currently creating an app which offers several functionalities. anyways it also includes the TTPhotoViewController which Three20 offers. Well this controller is absolutely awesome but i'm having some trouble after using the TTPhotoviewcontorller, since then all content falls behind my navigationbarcontroller.
Here are some screenshots where you can see before and after opening the viewcontroller
Before:
After:
After http://img88.imageshack.us/img88/5899/foto1c.jpg
Hopefully you guys can help me out since i'm quite new in these things.
Thanks in advance,
Wesley
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我猜导致问题的原因是TTPhotoviewcontorller将导航控制器的导航栏的栏样式更改为UIBarStyleBlackTranslucent,而您需要做的是将栏样式属性重置为UIBarStyleDefault。 调用:
您可以尝试在屏幕截图中的视图控制器的 viewDidAppear: 方法中
。顺便说一句,如果您的视图控制器是 TTViewController 的子类,您可以尝试应用 navigationBarStyle 属性。
I guess what causes the problem is that the TTPhotoviewcontorller changes the bar style of the navigation bar of your navigation controller to UIBarStyleBlackTranslucent, and what you need to do is to reset the bar style property to UIBarStyleDefault. You may try to call:
in the viewDidAppear: method of your view controller in the screenshots.
BTW, if your view controller is a subclass of TTViewController, you may try to apply the navigationBarStyle property.
根据我的经验,最好的结果是
:设置为
UIBarStyleDefault
(或UIBarStyleBlack
),在 viewController 的
viewWillAppear
方法中将 该方法将在关闭后出现。TTPhotoviewcontorller
。viewDidAppear
将起作用,尽管它可能会导致视图中出现一些“跳跃”的视觉效果。In my experience the best result is to set:
to
UIBarStyleDefault
(orUIBarStyleBlack
)in the
viewWillAppear
method of the viewController that will appear after dismissing theTTPhotoviewcontorller
.viewDidAppear
will work to, though it might cause some 'jumping' visual effect in the view.