Path: blob/main/Natives/PLPickerView.m
589 views
#import "PLPickerView.h"1#import "UIKit+hook.h"23@implementation PLPickerView4- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath5{6UITableViewCell *cell = [super tableView:tableView cellForRowAtIndexPath:indexPath];7//cell.imageView.image = [(id<PLPickerViewDelegate>)self.delegate pickerView:self imageForRow:indexPath.row forComponent:indexPath.section];8cell.imageView.frame = CGRectMake(0, 0, 40, 40);9cell.imageView.isSizeFixed = YES;10cell.imageView.layer.magnificationFilter = kCAFilterNearest;11[(id<PLPickerViewDelegate>)self.delegate pickerView:self enumerateImageView:cell.imageView forRow:indexPath.row forComponent:indexPath.section];12return cell;13}1415- (UIImage *)imageAtRow:(NSInteger)row column:(NSInteger)column {16NSIndexPath *indexPath = [NSIndexPath indexPathForRow:row inSection:column];17return [self tableView:[self tableViewForColumn:0] cellForRowAtIndexPath:indexPath].imageView.image;18}19@end202122