Problem with Three20 TTPhotoViewController

I'm not sure if this is the right place to ask or report this ... but I hope someone here can help me solve the following problem

I am currently creating an application that offers several features. In any case, it also includes the TTPhotoViewController, which Three20 offers. Well, this controller is absolutely awesome, but I had some problems after using TTPhotoviewcontorller, since then all the content is behind my barbar controller.

Here are some screenshots where you can see before and after opening the viewcontroller

Before:

Before

After:

After http://img88.imageshack.us/img88/5899/foto1c.jpg

I hope you guys can help me as I'm new to this.

Thanks in advance, Wesley

+4
source share
2 answers

I suppose the problem is that the TTPhotoviewcontorller changes the navigation bar style of your navigation controller to UIBarStyleBlackTranslucent, and you need to reset the UIBarStyleDefault bar style property. You can try calling:

self.navigationController.navigationBar.barStyle = UIBarStyleDefault; 

in viewDidAppear: the method of your view controller in screenshots.

BTW, if your view controller is a subclass of TTViewController, you can try using the navigationBarStyle property.

+7
source

In my experience, the best result is to set:

 self.navigationController.navigationBar.barStyle 

to UIBarStyleDefault (or UIBarStyleBlack )

in the viewWillAppear viewController method, which appears after the TTPhotoviewcontorller .

viewDidAppear will work, although it may cause some β€œjumping” visual effect in the view.

0
source

Source: https://habr.com/ru/post/1304649/


All Articles