摘要: AVCaptureDevice.h,主要用来获取iphone一些关于相机设备的属性。AVCaptureDevice.h,必须要引入AVFoundation.framework包。​1. 前置和后置摄像头​enum { AVCaptureDevicePositionBack = 1,AVCapture... 阅读全文
posted @ 2015-08-23 19:31 大胖子2015 阅读(357) 评论(0) 推荐(0) 编辑
摘要: #importintmain(intargc,constchar* argv[]){//可变字典NSMutableDictionary* set = [[NSMutableDictionary alloc]init];[setsetValue:@"shdf"forKeyPath:@"1"];[set... 阅读全文
posted @ 2015-08-23 19:30 大胖子2015 阅读(99) 评论(0) 推荐(0) 编辑
摘要: #import"ViewController.h"@interfaceViewController()AVAudioPlayerDelegate>@property(nonatomic,strong)UIProgressView* progressView;@property(nonatomic,s... 阅读全文
posted @ 2015-08-23 19:28 大胖子2015 阅读(129) 评论(0) 推荐(0) 编辑
摘要: #import"ViewController.h"@interfaceViewController()@property(nonatomic,strong)UILabel* label;@end@implementationViewController- (void)viewDidLoad {[su... 阅读全文
posted @ 2015-08-23 19:27 大胖子2015 阅读(162) 评论(0) 推荐(0) 编辑
摘要: @interfaceViewController()@property(nonatomic,strong)UIButton* button;-(void)btnshort;//短按回调方法-(void)btnlong:(UILongPressGestureRecognizer*)gestureRec... 阅读全文
posted @ 2015-08-23 19:26 大胖子2015 阅读(102) 评论(0) 推荐(0) 编辑