为您找到相关结果535个

ios 图片的两种加载方式 - Lai18.com IT技术文章收藏夹

[objc] view plaincopy+ (UIImage *)imageWithContentsOfFile:(NSString *)path - (id)initWithContentsOfFile:(NSString *)path; path是图片的全路径 其中又有:分组...
www.lai18.com/content/41549...html 2017-4-19

ios获取app版本号 - Lai18.com IT技术文章收藏夹

[code]NSDictionary* infoDict =[[NSBundle mainBundle] infoDictionary]; NSString* versionNum =[infoDict objectForKey:@"CFBundleVersion"]; NSString...
www.lai18.com/content/75829...html 2014-11-26

iOS网络编程---根据URL下载网络文件的方法 - Lai18.com IT技术...

//下载文件路径 NSString *_filePath; } @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; //①:NSUserDefaults类 --- //读取...
www.lai18.com/content/13741...html 2017-4-21

源码阅读:SDWebImage - Lai18.com IT技术文章收藏夹

- (NSOperation *)queryDiskCacheForKey:(NSString *)key done:(SDWebImageQueryCompletedBlock)doneBlock { if (!doneBlock){ return nil; } if (!key){ do...
www.lai18.com/content/9737...html 2017-4-24

iOS唯一表示符获取方案 - Lai18.com IT技术文章收藏夹

AccessGroups.plist文件,该文件的结构中最顶层的节点必须是一个名为“keychain-access-groups”的Array,并且该Array中每一项都是一个描述分组的NSString...
www.lai18.com/content/7198...html 2015-8-29

在终端本地建立HttpServer - Lai18.com IT技术文章收藏夹

method:(NSString *)requestMethod url:(NSURL *)requestURL headerFields:(NSDictionary *)requestHeaderFields{ if ([requestURL.path isEqualToString:@"/"]) ...
www.lai18.com/content/93631...html 2017-4-20

录音与音效 - Lai18.com IT技术文章收藏夹

(沙盒) NSString *documentDirectory = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES).lastObject; NSString *outputPath = [document...
www.lai18.com/content/18320...html 2017-4-21

支付宝快捷登录相关事宜 - Lai18.com IT技术文章收藏夹

最后作为参数传入SDK的授权方法 ,方法原型-(void) auth_V2WithInfo:(NSString*)infoStr fromScheme(NSString*)schemeStr callback:(CompletionBlock)completionBlock;/...
www.lai18.com/content/12511...html 2017-4-24

iOS开发——项目篇—高仿百思不得姐 - Lai18.com IT技术文章收藏夹

NSString *sizeText = nil; if (size >= unit * unit * unit) { // >= 1GB sizeText = [NSString stringWithFormat:@"%.1fGB", size / unit / unit...
www.lai18.com/content/51105...html 2017-4-20

NSFileManager介绍和用法 - Lai18.com IT技术文章收藏夹

[code]1、- (BOOL)fileExistsAtPath:(NSString *)path; path这个文件或文件夹(目录)是否存在 2、- (BOOL)fileExistsAtPath:(NSString *)path isDirectory:(BOOL *...
www.lai18.com/content/80894...html 2017-4-20