enormego / PhotoViewer

Quick PhotoViewer for the iPhone. Built upon our other reliable libraries: EGOImageLoading and EGOCache.
http://developers.enormego.com
660 stars 141 forks source link

NavigationBar Problem #35

Open lsantaniello opened 10 years ago

lsantaniello commented 10 years ago

I integrated PhotoViewer in my app but I have navigation bar problem. PhotoViewer Controller opened from different my custom controller. In many scenarious, Photo Viewer open with trasparent navigation bar. Navigation bar is not visible but if I click on top left I can go to back because back button is present but trasparent. How can I solve the problem?

thanks

kozik commented 10 years ago

In viewDidLoad() add:

// iOS 7
if ([self respondsToSelector:@selector(edgesForExtendedLayout)]){
    self.edgesForExtendedLayout = UIRectEdgeAll;   // iOS 7 specific
    self.extendedLayoutIncludesOpaqueBars = YES;
    self.automaticallyAdjustsScrollViewInsets = NO;
}

Best regards!