摘要: //传入数据,饼状图 pieChartView.dataArr = @[@20,@50,@80,@70,@40]; - (void)drawRect:(CGRect)rect { // Drawing code #if 0 //贝塞尔路径 UIBezierPath *path = [UIBezier 阅读全文
posted @ 2016-08-28 23:08 Da雪山 阅读(235) 评论(0) 推荐(0) 编辑
摘要: - (void)drawRect:(CGRect)rect { // Drawing code NSLog(@"drawRect自动调用"); //画图步骤 //获取上下文(/画笔/绘图环境) CGContextRef context = UIGraphicsGetCurrentContext(); 阅读全文
posted @ 2016-08-28 22:55 Da雪山 阅读(1709) 评论(0) 推荐(0) 编辑
摘要: 1.使用 scheduledTimerWithTimeInterval:invocation:repeats: 或者scheduledTimerWithTimeInterval:target:selector:userInfo:repeats: 这两个类方法创建一个timer并把它指定到一个默认的r 阅读全文
posted @ 2016-08-28 21:41 Da雪山 阅读(210) 评论(0) 推荐(0) 编辑
摘要: #pragma mark 1开关 - (void)createSwitch{ UISwitch *sw = [[UISwitch alloc]initWithFrame:CGRectMake(0, 70, 200, 40)]; sw.tintColor = [UIColor redColor]; s 阅读全文
posted @ 2016-08-28 18:33 Da雪山 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 1.点击 UITapGestureRecognizer *tapGes = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapGR:)]; tapGes.numberOfTouchesRequired = 1 阅读全文
posted @ 2016-08-28 17:17 Da雪山 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 可参考高德指南 http://lbs.amap.com/api/ios-location-sdk/guide/create-project/cocoapods 参考: http://blog.devtang.com/2014/05/25/use-cocoapod-to-manage-ios-lib- 阅读全文
posted @ 2016-08-28 13:59 Da雪山 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 例子:http://www.jianshu.com/p/9ffcdc0003e0 下面研究下AttributedString究竟可以设置哪些属性,具体来说,有以下21个: // NSFontAttributeName 设置字体属性,默认值:字体:Helvetica(Neue) 字号:12 // NS 阅读全文
posted @ 2016-08-28 10:11 Da雪山 阅读(618) 评论(0) 推荐(0) 编辑