LLSimpleCamera是一款简单实用的可以自定义的相机,也支持闪光灯。可以自定义相关的按钮进行自己的想进行的操作。
示例代码:
CGRect screenRect = [[UIScreen mainScreen] bounds]; // create camera vc self.camera = [[LLSimpleCamera alloc] initWithQuality:CameraQualityPhoto]; // attach to the view and assign a delegate [self.camera attachToViewController:self withDelegate:self]; // set the camera view frame to size and origin required for your app self.camera.view.frame = CGRectMake(0, 0, screenRect.size.width, screenRect.size.height);