From 0a5329fe17866294e2d8f5593e04b410ae71aa2b Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Sun, 11 Aug 2013 16:20:56 -0400 Subject: [PATCH] Email/support un news. [UPDATED] Refresh news whenever the app opens. [UPDATED] Email and support links in news.html --- .../ObjC/iOS/MPUnlockViewController.m | 7 +- .../ObjC/iOS/MainStoryboard_iPhone.storyboard | 198 ++++++++++++++++++ Site/2013-05/news.html | 13 ++ 3 files changed, 215 insertions(+), 3 deletions(-) diff --git a/MasterPassword/ObjC/iOS/MPUnlockViewController.m b/MasterPassword/ObjC/iOS/MPUnlockViewController.m index 9d4f924b..c5e8ae0f 100644 --- a/MasterPassword/ObjC/iOS/MPUnlockViewController.m +++ b/MasterPassword/ObjC/iOS/MPUnlockViewController.m @@ -124,9 +124,6 @@ - (void)viewDidLoad { - NSString *newsURL = PearlString( @"http://www.masterpasswordapp.com/news.html?version=%@", [[PearlInfoPlist get] CFBundleVersion] ); - [self.newsView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:newsURL]]]; - self.avatarToUserOID = [NSMutableDictionary dictionaryWithCapacity:3]; [self.avatarsView addGestureRecognizer:self.targetedUserActionGesture]; @@ -193,6 +190,10 @@ [UIView animateWithDuration:1 animations:^{ self.uiContainer.alpha = 1; }]; + + NSString *newsURL = PearlString( @"http://masterpasswordapp.com/news-dev.html?version=%@", + [[PearlInfoPlist get] CFBundleVersion] ); + [self.newsView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:newsURL]]]; }]; [self updateLayoutAnimated:NO allowScroll:YES completion:nil]; diff --git a/MasterPassword/ObjC/iOS/MainStoryboard_iPhone.storyboard b/MasterPassword/ObjC/iOS/MainStoryboard_iPhone.storyboard index ec3f5717..94fe5514 100644 --- a/MasterPassword/ObjC/iOS/MainStoryboard_iPhone.storyboard +++ b/MasterPassword/ObjC/iOS/MainStoryboard_iPhone.storyboard @@ -2916,6 +2916,204 @@ However, it means that anyone who finds your device unlocked can do the same. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Site/2013-05/news.html b/Site/2013-05/news.html index da4352e5..c432c0da 100644 --- a/Site/2013-05/news.html +++ b/Site/2013-05/news.html @@ -2,7 +2,20 @@ + +

E-mail us or open support if you have any issues.