首页 > 其他 > 详细

在界面 上生成一个摄像头.

时间:2014-07-02 22:03:19      阅读:346      评论:0      收藏:0      [点我收藏+]

 

            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

             ];

在界面 上生成一个摄像头.,布布扣,bubuko.com

在界面 上生成一个摄像头.

原文:http://www.cnblogs.com/willbin/p/3819005.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!