Skip to content

Commit 899f990

Browse files
committed
Fixed.
1 parent ccdf1c9 commit 899f990

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.DS_Store

0 Bytes
Binary file not shown.

AXWebViewController/AXWebViewController/AXWebViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)