2016年6月19日

摘要: 1\__block可以在ARC和MRC下使用,既可以修饰对象,也可以修饰基本数据类型; 2\__weak只能在ARC下使用,只能修饰对象,不能修饰基本数据类型. 3\当block内部需要修改外部参数时,需要用__block来修饰外部参数,当block内部需要用到self时,要用__weak来修饰se 阅读全文
posted @ 2016-06-19 19:48 小艾的博客 阅读(103) 评论(0) 推荐(0) 编辑
摘要: SDWebImage内部实现过程 入口 setImageWithURL:placeholderImage:options: 会先把 placeholderImage 显示,然后 SDWebImageManager 根据 URL 开始处理图片。 进入 SDWebImageManager-downloa 阅读全文
posted @ 2016-06-19 19:48 小艾的博客 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 遇到的问题:当网址包含汉字时,可以分享成功,但只能显示一张大图,不能响应点击事件; 1\首先获取shareSDK的AppKey,进入后台创建应用,获取AppKey 2\cocoapods导入shareSDK # 主模块(必须) pod 'ShareSDK3' # Mob 公共库(必须) 如果同时集成 阅读全文
posted @ 2016-06-19 19:36 小艾的博客 阅读(1371) 评论(0) 推荐(0) 编辑
摘要: 1\初始化 UISearchBar *searchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(10, 20, 200, 30)]; [self.view addSubview:searchBar]; searchBar.delegate = 阅读全文
posted @ 2016-06-19 11:26 小艾的博客 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 1\获取所有的缓存数据 NSURLCache *cache = [NSURLCache sharedURLCache]; 2\获取某一request对应的缓存 NSCachedURLResponse *respose = [cache cachedResponseForRequest:request 阅读全文
posted @ 2016-06-19 11:16 小艾的博客 阅读(139) 评论(0) 推荐(0) 编辑

导航