- 博客(5)
- 收藏
- 关注
原创 百度地图接入注意
1. 报错:[MapController initController……];类似这种崩溃信息,可能是因为你自己的类名 MapController 与百度地图内部的一个类重名了,并且你会发现你的控制器里面并没有initController……这个方法。 解决:将名为 MapController 的控制器改名试试2. duplicate… 意思是重复导入之类的 你是否使用cocoapods 管理
2016-11-28 15:32:46 1283
原创 贝塞尔曲线
1. 画圆 需要添加shapeLayerCGPoint layerCenter = CGPointMake(CGRectGetWidth(self.view.frame)/2, CGRectGetWidth(self.view.frame)/2); CAShapeLayer *layer = [CAShapeLayer layer]; layer.frame = self.view
2016-11-17 15:36:59 392
原创 iOS 原生二维码的扫面功能
这里只是介绍实现最基础的扫描功能,没有任何修饰需要导入#import <AVFoundation/AVFoundation.h>首先定义所需的属性@property ( strong , nonatomic ) AVCaptureDevice * device;@property ( strong , nonatomic ) AVCaptureDeviceInput * input;@prope
2016-11-16 16:41:18 734
原创 闪光灯的开启与关闭
//开启关闭闪光灯-(void)flashLightClick{ AVCaptureDevice * device = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo]; if (device.torchMode==AVCaptureTorchModeOff) { //闪光灯开启 [d
2016-11-15 18:05:18 1342
原创 屏幕截图
这是调用//用来截取测试的viewUIView *testView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)]; testView.backgroundColor = [UIColor redColor]; self.shotImage = [[UIImage alloc] init]; _shotI
2016-11-11 18:12:31 368
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人