12 2012 档案
摘要:http://www.devdiv.com/iOS_iPhone-Objective_C--%E4%BA%AB%E5%85%83%E6%A8%A1%E5%BC%8F-thread-18664-1-1.html《Objective-C编程之道 iOS设计模式解析》(英文名为Pro Objective-C Design Patterns for iOS,[美]Carlo Chung著)http://ky-storm.cn/blog/191.html#26
阅读全文
摘要:AVCaptureDevice.h主要用来获取iphone一些关于相机设备的属性。前置和后置摄像头enum{AVCaptureDevicePositionBack=1,AVCaptureDevicePositionFront =2};typedefNSIntegerAVCaptureDevicePosition;闪光灯开关enum{AVCaptureFlashModeOff=0,AVCaptureFlashModeOn =1,AVCaptureFlashModeAuto =2};typedefNSIntegerAVCaptureFlashMode;手电筒开关enum{AVCaptureTorc
阅读全文
摘要:首先,获取上下文CGContextRefcontext =UIGraphicsGetCurrentContext();画无框矩形//设置矩形填充颜色:红色 CGContextSetRGBFillColor(context, 1.0, 0.0, 0.0, 1.0); //填充矩形 CGContextFillRect(context, rect); //执行绘画 CGContextStrokePath(context); 画有框矩形//设置矩形填充颜色:红色 CGContextSetRGBFillColor(context, 1.0, 0.0, 0.0, 1.0); //填充矩形 ...
阅读全文
浙公网安备 33010602011771号