This repository was archived by the owner on Nov 9, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 9
9
%hook PSListController
10
10
11
11
- (NSInteger )tableView:(id )view numberOfRowsInSection:(NSInteger )section {
12
- if ([[self specifier ].identifier isEqualToString: @" General" ] && (section == 0 ) )
13
- return 1 ;
12
+ if ((section == 0 ) && [[self specifier ].identifier isEqualToString: @" General" ])
13
+ return %orig (view, section) - 1 ;
14
14
else
15
15
return %orig (view, section);
16
16
}
17
17
18
+ - (id )tableView:(id )view cellForRowAtIndexPath:(NSIndexPath *)indexPath {
19
+ if ((indexPath.section == 0 ) && (indexPath.row > 0 ) && [[self specifier ].identifier isEqualToString: @" General" ])
20
+ return %orig (view, [NSIndexPath indexPathForRow: indexPath.row + 1 inSection: indexPath.section]);
21
+ else
22
+ return %orig (view, indexPath);
23
+ }
24
+
18
25
%end
Original file line number Diff line number Diff line change 1
1
Package: com.ccdog.hidesoftwareupdate
2
2
Name: HideSoftwareUpdate
3
3
Depends: firmware (>= 5.0), mobilesubstrate
4
- Version: 1.0
4
+ Version: 1.1
5
5
Architecture: iphoneos-arm
6
6
Description: Hide Software Update in Preferences.app.
7
7
Author: CC-Dog <
[email protected] >
You can’t perform that action at this time.
0 commit comments