相关疑难解决方法(0)

iOS轻薄亚麻背景?

我真的想知道是否有办法获得iOS的轻薄亚麻背景.这是它的样子: ios地图app打开,菜单打开,地图看起来像一张小纸. 它是在ios6之前运行iOS版本的iPhone上

有没有办法只使用内置的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 :(点击缩略图打开)

点击查看完整分辨率

希望这对某人有用.:)

iphone cocoa-touch ios

31
推荐指数
2
解决办法
2万
查看次数

标签 统计

cocoa-touch ×1

ios ×1

iphone ×1