摘要:
@property (nonatomic, strong) NSURLSessionDataTask *task; @property (nonatomic, strong) AFHTTPSessionManager *manager; AFHTTPSessionManager *manager = 阅读全文
摘要:
1、//缓存路径 NSString *file = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject]; NSString *path = [file stringB 阅读全文
摘要:
self.navigationController.navigationBar.barStyle = UIBarStyleBlack;//黑色 self.navigationController.navigationBar.barStyle = UIBarStyleDefault;//白色 设置不同 阅读全文
摘要:
http://www.cocoachina.com/industry/20130328/5908.html 阅读全文
摘要:
http://www.cnblogs.com/heiniuhaha/archive/2011/11/11/2245594.html 阅读全文
摘要:
在图片的基础上绘制一些文字或logo,最终生成一张图片 1、在drawRect方法中获取上下文 位图上下文的获取跟layer的上下文获取方式不一样 2、绘制原生的图片 3、添加水印 4、生成图片 1、获取上下文 CGContentRef 2、描述路径 3、渲染上下文 阅读全文
摘要:
-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event { [self performSelectorInBackground:@selector(download) withObject:nil]; } 阅读全文
摘要:
iOS 最新版 CocoaPods 的安装流程 1.移除现有Ruby默认源 $gem sources --remove https://rubygems.org/ 2.使用新的源 $gem sources -a https://ruby.taobao.org/ 3.验证新源是否替换成功 $gem s 阅读全文