From d59f77720c16543797bd032dc16cfaa8ec730f18 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Fri, 8 Jun 2012 21:06:19 +0200 Subject: [PATCH] Minor improvements. --- MasterPassword/iOS/MPMainViewController.m | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/MasterPassword/iOS/MPMainViewController.m b/MasterPassword/iOS/MPMainViewController.m index e378a074..e59c05f5 100644 --- a/MasterPassword/iOS/MPMainViewController.m +++ b/MasterPassword/iOS/MPMainViewController.m @@ -52,7 +52,7 @@ - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { - return [[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad || interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown; + return interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown; } - (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration { @@ -214,10 +214,9 @@ [TestFlight passCheckpoint:[NSString stringWithFormat:MPTestFlightCheckpointHelpChapter, chapter]]; dispatch_async(dispatch_get_main_queue(), ^{ - [self.helpView loadRequest: - [NSURLRequest requestWithURL: - [NSURL URLWithString:[NSString stringWithFormat:@"#%@", chapter] relativeToURL: - [[NSBundle mainBundle] URLForResource:@"help" withExtension:@"html"]]]]; + NSURL *url = [NSURL URLWithString:[@"#" stringByAppendingString:chapter] + relativeToURL:[[NSBundle mainBundle] URLForResource:@"help" withExtension:@"html"]]; + [self.helpView loadRequest:[NSURLRequest requestWithURL:url]]; }); }