12 2016 档案
摘要:AVAudioPlayer苹果官方上说一般用于播放本地音频,不能用于播放网络上的音频。 具体的代码:先导入 #import <AVFoundation/AVFoundation.h> //本地音频的路径 NSString * path = [[NSBundle mainBundle] pathFor
阅读全文
摘要:AVFoundation视频流的捕捉: 要捕捉视频需要这几个类: AVCaptureDevice 代表了输入设备,例如摄像头与麦克风。 AVCaptureInput 代表了输入数据源 AVCaptureOutput 代表了输出数据源 AVCaptureSession 用于协调输入与输出之间的数据流
阅读全文
摘要:图层就是我们所说的CALayer层,视图就是我们所说的UIView层。 UIView有三个比较重要的布局属性:frame,bounds和center,CALayer对应地叫做frame,bounds和position。为了能清楚区分,图层用了“position”,视图用了“center”,但是他们都
阅读全文
摘要:一:基本画线: 使用贝赛尔曲线画: //创建路径 UIBezierPath* aPath = [UIBezierPath bezierPath]; //设置线宽 aPath.lineWidth = 5.0; //线条拐角 aPath.lineCapStyle = kCGLineCapRound; /
阅读全文

浙公网安备 33010602011771号