This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| xcodebuild -scheme MyScheme -showBuildSettings | grep ARCHS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| + (UIImage *)resizeImage:(UIImage *)image scaledToFitSize:(CGFloat)max | |
| { | |
| NSData *imageData = [NSData dataWithData:UIImageJPEGRepresentation(image, 1.0)]; | |
| CGImageSourceRef imageSource = CGImageSourceCreateWithData((__bridge CFDataRef)imageData, NULL); | |
| if (!imageSource) | |
| return nil; | |
| CFDictionaryRef options = (__bridge CFDictionaryRef)[NSDictionary dictionaryWithObjectsAndKeys: | |
| (id)kCFBooleanTrue, (id)kCGImageSourceCreateThumbnailWithTransform, | |
| (id)kCFBooleanTrue, (id)kCGImageSourceCreateThumbnailFromImageIfAbsent, |
OlderNewer