Oip*_*oks 16 iphone objective-c uiimage ios
我在sqlite数据库中有一个图像的完整路径,它存储在设备中,我需要设置一个带有该图像的UIImage.
例:
NSLog(@"Path %@", imagePath);
Run Code Online (Sandbox Code Playgroud)
输出:
/Users/Sk*****/Library/Application Support/iPhone Simulator/4.3.2/Applications/15977219-DEFE-407A-BB80-72E188E18DD2/Documents/20-10-20111746.png
Run Code Online (Sandbox Code Playgroud)
epa*_*tel 36
使用 + (UIImage *)imageWithContentsOfFile:(NSString *)path
UIImage *image = [UIImage imageWithContentsOfFile:imagePath];
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
18811 次 |
| 最近记录: |