2
0

statusbar/navbar visibility & news.html

[FIXED]     Handle statusbar/navbar visibility only from viewWillAppear.
[FIXED]     URL to news.html.
This commit is contained in:
Maarten Billemont 2013-08-26 21:43:34 -04:00
parent 7589b3a048
commit e3d8d3c31c
2 changed files with 4 additions and 6 deletions

View File

@ -121,6 +121,9 @@
- (void)viewWillAppear:(BOOL)animated {
[[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationSlide];
[self.navigationController setNavigationBarHidden:NO animated:animated];
MPElementEntity *activeElement = [self activeElementForMainThread];
if (activeElement.user != [[MPiOSAppDelegate get] activeUserForMainThread])
_activeElementOID = nil;

View File

@ -188,7 +188,7 @@
self.uiContainer.alpha = 1;
}];
NSString *newsURL = PearlString( @"http://masterpasswordapp.com/news-dev.html?version=%@",
NSString *newsURL = PearlString( @"http://masterpasswordapp.com/news.html?version=%@",
[[PearlInfoPlist get] CFBundleVersion] );
[self.newsView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:newsURL]]];
}];
@ -245,11 +245,6 @@
[self.marqueeTipTimer invalidate];
[[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationSlide];
[[NSOperationQueue mainQueue] addOperationWithBlock:^{
[self.navigationController setNavigationBarHidden:NO animated:animated];
}];
[super viewWillDisappear:animated];
}