From 51b7b192b0743222e8441b4d25d3c2a2cd7ee610 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=9B=BD=E6=99=94?= Date: Tue, 3 Nov 2015 09:56:58 +0800 Subject: [PATCH] Fix Crash --- Tweak.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tweak.m b/Tweak.m index 056c025..528e923 100644 --- a/Tweak.m +++ b/Tweak.m @@ -9,7 +9,7 @@ - (NSInteger)numberOfSectionsInTableView:(id)view { NSInteger result = %orig; if ([[self specifier].identifier isEqualToString:@"MOBILE_DATA_SETTINGS_ID"]) { - if (![self tableView:view titleForHeaderInSection:result - 2]) + if (result > 2 && ![self tableView:view titleForHeaderInSection:result - 2]) cellularSectionNumber = result - 3; else cellularSectionNumber = result - 2;