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

Commit 51b7b19

Browse files
author
张国晔
committed
Fix Crash
1 parent 0cfcbca commit 51b7b19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tweak.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
- (NSInteger)numberOfSectionsInTableView:(id)view {
1010
NSInteger result = %orig;
1111
if ([[self specifier].identifier isEqualToString:@"MOBILE_DATA_SETTINGS_ID"]) {
12-
if (![self tableView:view titleForHeaderInSection:result - 2])
12+
if (result > 2 && ![self tableView:view titleForHeaderInSection:result - 2])
1313
cellularSectionNumber = result - 3;
1414
else
1515
cellularSectionNumber = result - 2;

0 commit comments

Comments
 (0)