zoukankan      html  css  js  c++  java
  • 在界面 上生成一个摄像头.

     

                UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init];

                

                imagePickerController.delegate = self;

                imagePickerController.sourceType = UIImagePickerControllerSourceTypeCamera;

                imagePickerController.cameraCaptureMode = UIImagePickerControllerCameraCaptureModePhoto;

                

                imagePickerController.showsCameraControls = NO;

                UIView *controllerView = imagePickerController.view;

                

                controllerView.alpha = 0.0;

                controllerView.transform = CGAffineTransformMakeScale(0.5, 0.5);

                

                [[[[UIApplication sharedApplication] delegate] window] addSubview:controllerView];

                

                [UIView animateWithDuration:0.3

                                      delay:0.0

                                    options:UIViewAnimationOptionCurveLinear

                                 animations:^{

                                     controllerView.alpha = 1.0;

                                 }

                                 completion:nil

                 ];

  • 相关阅读:
    VIM 文本对象选择
    XLA优化实例
    TVM/Relay 的 PartitionGraph()(mod) 函数讨论整理
    OpenCL通用异构开放环境
    LLVM IR 理解
    vue——请求跨域时,vcli2/vcli3设置代理
    【转】SQL 21天实战练习
    bash命令
    linux命令
    jenkins技术
  • 原文地址:https://www.cnblogs.com/willbin/p/3819005.html
Copyright © 2011-2022 走看看