- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- (void)selectCurrentItem
{
NSInteger index = 0;
BOOL fl = NO;
BOOL fl2 = YES;
BOOL fl3 = YES;
if (self.currentScheme == LeftPanelSchemeFriendsDetail) {
if (!self.selectedGenre) {
fl3 = NO;
} else {
fl3 = YES;
}
}
if (!self.selectCurrentItemOnes) {
self.needShowFriendsDetail = NO;
}
if (self.selectedItem && (self.needSelectCurrentItem || !self.selectCurrentItemOnes) && fl3) {
if ([self.news containsObject:self.selectedItem]) {
index = [self.news indexOfObject:self.selectedItem];
if ([self.news containsObject:self.selectedItem]) {
if (index == [self.news indexOfObject:self.selectedItem]) {
fl = YES;
if (self.currentScheme == LeftPanelSchemeFriendsMap) {
self.needShowFriendsDetail = NO;
if (self.downButton.enabled) {
self.needShowFriendsDetail = NO;
[self updateDownPressed];
fl2 = NO;
} else {
}
}
}
}
}
}
if ([self.tableView numberOfRowsInSection:0] && fl2) {
[self.tableView selectRowAtIndexPath:[NSIndexPath indexPathForRow:index inSection:0] animated:YES scrollPosition:UITableViewScrollPositionMiddle];
[self selectRowAtIndexPath:[NSIndexPath indexPathForRow:index inSection:0]];
if (fl) {
self.selectCurrentItemOnes = YES;
fl = NO;
}
}
}