mirror of
https://github.com/samsonjs/samhuri.net-ios.git
synced 2026-03-25 09:25:47 +00:00
don't deselect posts on iPad
This commit is contained in:
parent
b4a1b208bb
commit
1fc4057384
1 changed files with 4 additions and 3 deletions
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue