diff --git a/Blog/PostsViewController.m b/Blog/PostsViewController.m index 767ef3b..e5f1707 100644 --- a/Blog/PostsViewController.m +++ b/Blog/PostsViewController.m @@ -198,12 +198,13 @@ static const NSUInteger SectionPublished = 1; [super viewWillAppear:animated]; [self setupBlogStatusTimer]; [self requestStatusWithCaching:YES]; + BOOL isPhone = [UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPhone; + if (isPhone && self.tableView.indexPathForSelectedRow) { + [self.tableView deselectRowAtIndexPath:self.tableView.indexPathForSelectedRow animated:YES]; + } if (!self.postCollections) { [self requestPostsWithCaching:YES]; } - if (self.tableView.indexPathForSelectedRow) { - [self.tableView deselectRowAtIndexPath:self.tableView.indexPathForSelectedRow animated:YES]; - } [self setupKeyboardNotifications]; }