一個簡單的,可定制的iOS攝像頭控件:LLSimpleCamera

jopen 10年前發布 | 34K 次閱讀 iOS開發 移動開發 LLSimpleCamera

screenshot.png

LLSimpleCamera是一個用于創建自定義相機界面類似snapchat的庫。您不必在新的視圖控制器中展示相機。

LLSimpleCamera:

  • will let you easily capture photos
  • handles the position and flash of the camera
  • hides the nitty gritty details from the developer
  • </ul>

    示例使用

    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);</pre>

    項目主頁:http://www.baiduhome.net/lib/view/home/1416472989305

    </code>

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!