自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 百度地图接入注意

1. 报错:[MapController initController……];类似这种崩溃信息,可能是因为你自己的类名 MapController 与百度地图内部的一个类重名了,并且你会发现你的控制器里面并没有initController……这个方法。 解决:将名为 MapController 的控制器改名试试2. duplicate… 意思是重复导入之类的 你是否使用cocoapods 管理

2016-11-28 15:32:46 1242

原创 贝塞尔曲线

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 369

原创 iOS 原生二维码的扫面功能

这里只是介绍实现最基础的扫描功能,没有任何修饰需要导入#import <AVFoundation/AVFoundation.h>首先定义所需的属性@property ( strong , nonatomic ) AVCaptureDevice * device;@property ( strong , nonatomic ) AVCaptureDeviceInput * input;@prope

2016-11-16 16:41:18 717

原创 闪光灯的开启与关闭

//开启关闭闪光灯-(void)flashLightClick{ AVCaptureDevice * device = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo]; if (device.torchMode==AVCaptureTorchModeOff) { //闪光灯开启 [d

2016-11-15 18:05:18 1303

原创 屏幕截图

这是调用//用来截取测试的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 340

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除