摘要:
//传入数据,饼状图 pieChartView.dataArr = @[@20,@50,@80,@70,@40]; - (void)drawRect:(CGRect)rect { // Drawing code #if 0 //贝塞尔路径 UIBezierPath *path = [UIBezier 阅读全文
摘要:
- (void)drawRect:(CGRect)rect { // Drawing code NSLog(@"drawRect自动调用"); //画图步骤 //获取上下文(/画笔/绘图环境) CGContextRef context = UIGraphicsGetCurrentContext(); 阅读全文
摘要:
1.使用 scheduledTimerWithTimeInterval:invocation:repeats: 或者scheduledTimerWithTimeInterval:target:selector:userInfo:repeats: 这两个类方法创建一个timer并把它指定到一个默认的r 阅读全文
摘要:
#pragma mark 1开关 - (void)createSwitch{ UISwitch *sw = [[UISwitch alloc]initWithFrame:CGRectMake(0, 70, 200, 40)]; sw.tintColor = [UIColor redColor]; s 阅读全文
摘要:
1.点击 UITapGestureRecognizer *tapGes = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapGR:)]; tapGes.numberOfTouchesRequired = 1 阅读全文
摘要:
可参考高德指南 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- 阅读全文
摘要:
例子:http://www.jianshu.com/p/9ffcdc0003e0 下面研究下AttributedString究竟可以设置哪些属性,具体来说,有以下21个: // NSFontAttributeName 设置字体属性,默认值:字体:Helvetica(Neue) 字号:12 // NS 阅读全文