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

                 ];

  • 相关阅读:
    大数据平台布局图
    springMvc入门Demo例子
    用photoShop不改变图片尺寸修改存储大小
    ABBYY FineReader OCR识别图片文字到word电子
    servlet+jsp实例demo
    Runtime Hosts
    Hosting the Common Language Runtime
    Programming with Application Domains
    Application Domains Overview
    Application Domains
  • 原文地址:https://www.cnblogs.com/willbin/p/3819005.html
Copyright © 2011-2022 走看看