Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 84eadc3

Browse files
author
张国晔
committed
Fix for iOS 6
won't show software update when tapping usage
1 parent 98b90f5 commit 84eadc3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Tweak.x

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,11 @@
2222
return %orig(view, indexPath);
2323
}
2424

25+
- (void)tableView:(UITableView *)view didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
26+
if ((indexPath.section == 0) && (indexPath.row > 0) && [[self specifier].identifier isEqualToString:@"General"])
27+
return %orig(view, [NSIndexPath indexPathForRow:indexPath.row + 1 inSection:indexPath.section]);
28+
else
29+
return %orig(view, indexPath);
30+
}
31+
2532
%end

0 commit comments

Comments
 (0)