File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
AXWebViewController/AXWebViewController Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -319,14 +319,14 @@ - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfa
319319
320320- (void )didRotateFromInterfaceOrientation : (UIInterfaceOrientation)fromInterfaceOrientation {
321321 [super didRotateFromInterfaceOrientation: fromInterfaceOrientation];
322- [self updateNavigationItems ];
322+ if (_navigationType == AXWebViewControllerNavigationBarItem) [self updateNavigationItems ];
323323}
324324
325325- (void )viewWillTransitionToSize : (CGSize)size withTransitionCoordinator : (id <UIViewControllerTransitionCoordinator>)coordinator {
326326 if ([super respondsToSelector: @selector (viewWillTransitionToSize:withTransitionCoordinator: )]) {
327327 [super viewWillTransitionToSize: size withTransitionCoordinator: coordinator];
328328 }
329- [self updateNavigationItems ];
329+ if (_navigationType == AXWebViewControllerNavigationBarItem) [self updateNavigationItems ];
330330}
331331
332332- (BOOL )navigationBar : (UINavigationBar *)navigationBar shouldPopItem : (UINavigationItem *)item {
You can’t perform that action at this time.
0 commit comments