Problem adding Three20 PhotoViewer to my UINavigationViewController

I want the photo viewer in my iphone application and I liked the photo viewer <205 . It was difficult for me to integrate it into my application, where I have my typical UINavigationViewController. So far I have managed to do the following:

TTURLMap *map = [[[TTURLMap alloc] init] autorelease];
[map from:@"tt://appPhotos" toSharedViewController:[PhotoViewController class]];  
[self.navigationController pushViewController:[map objectForURL:@"tt://appPhotos"] animated:YES];

The only problem is that wenn I click on my initial view, its navigation bar supports the style of viewing photos (it shows a transparency and view below it). How can I get my navigation bar back?

+3
source share
2 answers

, . , @diwup, . TTPhotoViewer, . , .

, , :

- (void)viewWillDisappear:(BOOL)animated {
[super viewWillDisappear:animated];
self.navigationController.navigationBar.barStyle = UIBarStyleBlack;
self.navigationController.navigationBar.tintColor = myTintColor;
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault];
}

, , - [viewWillAppear:] , .

+1

: - tr20 PhotoViewer , PhotoViewer . ( ). , .

+2

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


All Articles