开发者

Problem with Three20 TTPhotoViewController

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 befo开发者_JAVA技巧re and after opening the viewcontroller

Before:

Problem with Three20 TTPhotoViewController

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


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:

 self.navigationController.navigationBar.barStyle = UIBarStyleDefault;

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.


In my experience the best result is to set:

self.navigationController.navigationBar.barStyle

to UIBarStyleDefault (or UIBarStyleBlack)

in the viewWillAppear method of the viewController that will appear after dismissing the TTPhotoviewcontorller.

viewDidAppear will work to, though it might cause some 'jumping' visual effect in the view.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜