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

                 ];

  • 相关阅读:
    字符串中包含最多的字符
    循环左移操作 (左旋转字符串)
    翻转字符串
    和为s的连续正数序列
    Unity之使用技巧记录
    Unity资源
    各种IDE的使用
    Unity3d之MonoBehavior自带方法的执行顺序
    c#之new关键词——隐藏基类方法
    算法——各种类型对象通用的二分法插入排序
  • 原文地址:https://www.cnblogs.com/willbin/p/3819005.html
Copyright © 2011-2022 走看看