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 +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 44@property (strong , nonatomic ) NSString *identifier;
55@end
66
7- @interface PSListController
7+ @interface PSListController : UITableViewController
88- (PSSpecifier *)specifier ;
9- - (NSInteger )numberOfSectionsInTableView : (id )view ;
10- - (id )tableView : (id )view cellForRowAtIndexPath : (NSIndexPath *)indexPath ;
119@end
1210
1311@interface PSSubtitleSwitchTableCell
Original file line number Diff line number Diff line change 33%hook PSListController
44
55NSArray *map;
6- NSInteger count = 0 ;
6+ NSInteger count;
77
88- (NSInteger )tableView:(id )view numberOfRowsInSection:(NSInteger )section {
99 NSInteger result = %orig (view, section);
@@ -17,7 +17,7 @@ - (NSInteger)tableView:(id)view numberOfRowsInSection:(NSInteger)section {
1717 num = result - 2 ;
1818 NSMutableArray *data = [NSMutableArray arrayWithCapacity: num];
1919 for (NSInteger i = 0 ; i < num; i++) {
20- NSString *sizeString = [[(UITableViewCell *)[ self tableView: view cellForRowAtIndexPath: [NSIndexPath indexPathForRow: i inSection: section]] detailTextLabel ] text ] ;
20+ NSString *sizeString = [self tableView: view cellForRowAtIndexPath: [NSIndexPath indexPathForRow: i inSection: section]]. detailTextLabel . text ;
2121 float size = [sizeString floatValue ];
2222 NSInteger length = [sizeString length ];
2323 if (length > 2 )
You can’t perform that action at this time.
0 commit comments