don't deselect posts on iPad

This commit is contained in:
Sami Samhuri 2015-05-22 00:00:11 -04:00
parent b4a1b208bb
commit 1fc4057384

View file

@ -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];
}