Commit 47fdce39 by lee

u webview navbar bug

parent 67c4bb9a
......@@ -22,13 +22,21 @@
}
- (void)viewWillAppear:(BOOL)animated{
// if (_titleView) {
// id items = [[NSMutableArray alloc] initWithArray:self.navigationController.navigationBar.items];
// [items addObject:_titleView];
// self.navigationController.navigationBar.items = items;
// }
[self.navigationController setNavigationBarHidden:NO];
if (self.navigationController.navigationBar.items.count > 1) {
self.navigationController.navigationBar.items[1].title = self.title;
}
[super viewWillAppear:animated];
}
- (void)viewWillDisappear:(BOOL)animated{
[super viewWillDisappear:animated];
// [self.navigationController setNavigationBarHidden:YES];
self.navigationController.navigationBar.items.lastObject.title = nil;
}
- (void)didReceiveMemoryWarning {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment