Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/PojavLauncher_iOS
Path: blob/main/Natives/PLPickerView.m
589 views
1
#import "PLPickerView.h"
2
#import "UIKit+hook.h"
3
4
@implementation PLPickerView
5
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
6
{
7
UITableViewCell *cell = [super tableView:tableView cellForRowAtIndexPath:indexPath];
8
//cell.imageView.image = [(id<PLPickerViewDelegate>)self.delegate pickerView:self imageForRow:indexPath.row forComponent:indexPath.section];
9
cell.imageView.frame = CGRectMake(0, 0, 40, 40);
10
cell.imageView.isSizeFixed = YES;
11
cell.imageView.layer.magnificationFilter = kCAFilterNearest;
12
[(id<PLPickerViewDelegate>)self.delegate pickerView:self enumerateImageView:cell.imageView forRow:indexPath.row forComponent:indexPath.section];
13
return cell;
14
}
15
16
- (UIImage *)imageAtRow:(NSInteger)row column:(NSInteger)column {
17
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:row inSection:column];
18
return [self tableView:[self tableViewForColumn:0] cellForRowAtIndexPath:indexPath].imageView.image;
19
}
20
@end
21
22