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

Commit

Permalink
Fix for iOS 6
Browse files Browse the repository at this point in the history
won't show software update when tapping usage
  • Loading branch information
张国晔 committed Mar 3, 2014
1 parent 98b90f5 commit 84eadc3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Tweak.x
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,11 @@
return %orig(view, indexPath);
}

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

%end

0 comments on commit 84eadc3

Please sign in to comment.