摘要: #import "LockView.h" @interface LockView () @property (nonatomic, strong) NSMutableArray *selectedsBtn; @property (nonatomic, assign) CGPoint curP; @e 阅读全文
posted @ 2016-11-07 10:56 华少不思议 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 欢迎关注简书iOS藏经阁 阅读全文
posted @ 2016-11-05 15:05 华少不思议 阅读(114) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h" @interface ViewController () @property (nonatomic, assign) CGPoint startP; @property (weak, nonatomic) IBOutlet UIImageView 阅读全文
posted @ 2016-11-05 11:36 华少不思议 阅读(916) 评论(0) 推荐(0) 编辑
摘要: + (UIImage *)imageWithCaputureView:(UIView *)view { // 开启位图上下文 UIGraphicsBeginImageContextWithOptions(view.bounds.size, NO, 0); // 获取上下文 CGContextRef 阅读全文
posted @ 2016-11-05 10:42 华少不思议 阅读(282) 评论(0) 推荐(0) 编辑
摘要: - (void)clipImage { // 0.加载图片 UIImage *image = [UIImage imageNamed:@"阿狸头像"]; // 1.开启位图上下文,跟图片尺寸一样大 UIGraphicsBeginImageContextWithOptions(image.size, 阅读全文
posted @ 2016-11-05 09:49 华少不思议 阅读(178) 评论(0) 推荐(0) 编辑
摘要: // .获取上下文,之前的上下文都是在view的drawRect方法中获取(跟View相关联的上下文layer上下文) // 目前我们需要绘制图片到新的图片上,因此需要用到位图上下文 // 怎么获取位图上下文,注意位图上下文的获取方式跟layer上下文不一样。位图上下文需要我们手动创建。 // 开启 阅读全文
posted @ 2016-11-04 18:28 华少不思议 阅读(228) 评论(0) 推荐(0) 编辑
摘要: #pragma mark - 绘图的几种方式 #pragma mark - 绘图第三种方式 1.#pragma mark - 最原始的绘图方式 - (void)drawLine { // 1.获取图形上下文 // 目前我们所用的上下文都是以UIGraphics // CGContextRef Ref 阅读全文
posted @ 2016-11-04 12:08 华少不思议 阅读(200) 评论(0) 推荐(0) 编辑
摘要: // 获取屏幕的宽度 #define screenW [UIScreen mainScreen].bounds.size.width #import "ViewController.h" @interface ViewController () @end @implementation ViewCo 阅读全文
posted @ 2016-11-04 10:57 华少不思议 阅读(670) 评论(0) 推荐(0) 编辑
摘要: 欢应关注简书iOS藏经阁http://www.jianshu.com/collection/81f41112ddee 阅读全文
posted @ 2016-11-03 17:46 华少不思议 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 发布应用程序 *developer.apple.com : 开发者主页, 配置证书\AppId\描述文件 1> 发布的证书, 说清楚哪台电脑可以发布程序 2> 添加发布的描述文件,描述在哪台计算机上能够发布哪些应用程序 2. iTunesConnect网站(专门用来发布应用程序) https://i 阅读全文
posted @ 2016-11-03 17:30 华少不思议 阅读(164) 评论(0) 推荐(0) 编辑