sud*_*-rf 31 iphone cocoa-touch ios
我真的想知道是否有办法获得iOS的轻薄亚麻背景.这是它的样子:

有没有办法只使用内置的SDK访问它?或者我必须在某处找到这样的图像?
编辑:我不想使用私有API,所以这就是我做的.我这样抓住了图像:
CGRect rect = CGRectMake(0.0f, 0.0f, 640.0f, 960.0f);
UIGraphicsBeginImageContext(rect.size);
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetFillColorWithColor(context, [[UIColor underPageBackgroundColor] CGColor]);
CGContextFillRect(context, rect);
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *imagepath = [documentsDirectory stringByAppendingPathComponent:@"underPageBackground.png"];
[UIImagePNGRepresentation(image) writeToFile:imagepath atomically:YES];
Run Code Online (Sandbox Code Playgroud)
以下是视网膜分辨率产生的png :(点击缩略图打开)
希望这对某人有用.:)
| 归档时间: |
|
| 查看次数: |
17209 次 |
| 最近记录: |