上一页 1 ··· 4 5 6 7 8 9 下一页
摘要: CAShapeLayer与UIBezierPath的关系: CAShapeLayer与UIBezierPath画圆 效果图如下: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 - (CAShapeLay 阅读全文
posted @ 2016-05-05 00:10 huangyan1022 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 添加数据源, 由三个函数来回答数据绑定的请求:numberOfSectionsInTableView, numberOfRowsInSection 和 cellForRowAtIndexPath. 用numberOfSectionsInTableView方法来返回table中有几个组. - (NSI 阅读全文
posted @ 2016-04-29 00:20 huangyan1022 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 本文为博主原创文章,未经博主允许不得转载。 本文为博主原创文章,未经博主允许不得转载。 目录(?)[+] 目录(?)[+] 一、背景概述: 1,环境配置 APNS:Apple Push Notification Service。本文对推送相关概念不再赘述,只侧重完整流程。 Demo 开发环境:Mac 阅读全文
posted @ 2016-04-27 23:56 huangyan1022 阅读(235) 评论(1) 推荐(0) 编辑
摘要: 一、键盘风格 UIKit框架支持8种风格键盘。 typedef enum { UIKeyboardTypeDefault, // 默认键盘:支持所有字符 UIKeyboardTypeASCIICapable, // 支持ASCII的默认键盘 UIKeyboardTypeNumbersAndPunct 阅读全文
posted @ 2016-04-26 23:58 huangyan1022 阅读(304) 评论(0) 推荐(0) 编辑
摘要: @interface ViewController ()<UITableViewDataSource,UITableViewDelegate,UISearchBarDelegate,UISearchResultsUpdating>@property(nonatomic,strong) NSMutab 阅读全文
posted @ 2016-04-26 00:06 huangyan1022 阅读(274) 评论(0) 推荐(0) 编辑
摘要: iOS 最新版 CocoaPods 的安装流程 1.移除现有Ruby默认源 $gem sources --remove https://rubygems.org/ 2.使用新的源 $gem sources -a https://ruby.taobao.org/ 3.验证新源是否替换成功 $gem s 阅读全文
posted @ 2016-04-24 23:46 huangyan1022 阅读(192) 评论(0) 推荐(0) 编辑
摘要: -(void)scrollviewff{ self.scrollview=[[UIScrollView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 200)]; _scrollview.backgroundColo 阅读全文
posted @ 2016-04-21 00:19 huangyan1022 阅读(111) 评论(0) 推荐(0) 编辑
摘要: //实现可以连续绘画, 不让画笔每次touchBegin时都重新初始化 - (UIBezierPath *)path { if (!_path) { _path = [UIBezierPath bezierPath]; } return _path; } - (void)drawRect:(CGRe 阅读全文
posted @ 2016-04-20 00:09 huangyan1022 阅读(190) 评论(0) 推荐(0) 编辑
摘要: - (void)exitApplication { [UIView beginAnimations:@"exitApplication" context:nil]; [UIView setAnimationDuration:0.5]; [UIView setAnimationDelegate:sel 阅读全文
posted @ 2016-04-19 00:21 huangyan1022 阅读(176) 评论(0) 推荐(0) 编辑
摘要: @interface ViewController ()void UIImageWriteToSavedPhotosAlbum ( UIImage * image, id completionTarget, SEL completionSelector, void *contextInfo );@e 阅读全文
posted @ 2016-04-17 23:57 huangyan1022 阅读(120) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 下一页