mirror of
https://github.com/samsonjs/samhuri.net-ios.git
synced 2026-04-27 15:07:44 +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];
|
[super viewWillAppear:animated];
|
||||||
[self setupBlogStatusTimer];
|
[self setupBlogStatusTimer];
|
||||||
[self requestStatusWithCaching:YES];
|
[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) {
|
if (!self.postCollections) {
|
||||||
[self requestPostsWithCaching:YES];
|
[self requestPostsWithCaching:YES];
|
||||||
}
|
}
|
||||||
if (self.tableView.indexPathForSelectedRow) {
|
|
||||||
[self.tableView deselectRowAtIndexPath:self.tableView.indexPathForSelectedRow animated:YES];
|
|
||||||
}
|
|
||||||
[self setupKeyboardNotifications];
|
[self setupKeyboardNotifications];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue