mirror of
https://github.com/opa334/TrollStore.git
synced 2026-07-02 11:17:51 +08:00
Workaround ldid issue, improve app icons
This commit is contained in:
@@ -95,8 +95,15 @@
|
||||
|
||||
// Configure the cell...
|
||||
cell.textLabel.text = [[TSApplicationsManager sharedInstance] displayNameForAppPath:appPath];
|
||||
cell.detailTextLabel.text = appVersion;
|
||||
cell.imageView.image = [UIImage _applicationIconImageForBundleIdentifier:appId format:10 scale:2.0];
|
||||
cell.detailTextLabel.text = [NSString stringWithFormat:@"%@ • %@", appVersion, appId];
|
||||
cell.imageView.image = [UIImage _applicationIconImageForBundleIdentifier:appId format:10 scale:[UIScreen mainScreen].scale];
|
||||
cell.imageView.layer.borderWidth = 0.2;
|
||||
cell.imageView.layer.borderColor = [UIColor blackColor].CGColor;
|
||||
cell.imageView.layer.cornerRadius = 13.8;
|
||||
|
||||
cell.preservesSuperviewLayoutMargins = NO;
|
||||
cell.separatorInset = UIEdgeInsetsZero;
|
||||
cell.layoutMargins = UIEdgeInsetsZero;
|
||||
|
||||
return cell;
|
||||
}
|
||||
|
||||
@@ -59,7 +59,15 @@
|
||||
|
||||
- (NSString*)versionStringForAppPath:(NSString*)appPath
|
||||
{
|
||||
return [self infoDictionaryForAppPath:appPath][@"CFBundleShortVersionString"];
|
||||
NSDictionary* infoDict = [self infoDictionaryForAppPath:appPath];
|
||||
NSString* versionString = infoDict[@"CFBundleShortVersionString"];
|
||||
|
||||
if(!versionString)
|
||||
{
|
||||
versionString = infoDict[@"CFBundleVersion"];
|
||||
}
|
||||
|
||||
return versionString;
|
||||
}
|
||||
|
||||
- (NSError*)errorForCode:(int)code
|
||||
|
||||
Reference in New Issue
Block a user