DYCustomTakePhtotoDemo

加入收藏
已有 人收藏

介绍:
    自定义系统拍照功能。

    1.这是打开自定义拍照功能的控制器

     LMSTakePhotoController *p = [[LMSTakePhotoController alloc] init];

     p.position = TakePhotoPositionFront;

     p.delegate = self;

     UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:p];

     [self presentViewController:nav animated:YES completion:NULL];

    2.拍完照之后的返回的图片

    - (void)didFinishPickingImage:(UIImage *)image;

    3.以前置摄像头开启还是以后置摄像头开启拍照功能

    @property (nonatomic,assign)TakePhotoPosition position;

测试环境:
  [Code4App]编译测试
效果图:
  • iOS / iPhone / iPad 自定义系统拍照功能。<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;1.这是打开自定义拍照功能的控制器<br /><br />&nbsp;&nbsp;&nbsp;&nbsp; LMSTakePhotoController *p = [[LMSTakePhotoController alloc] init];<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;    p.position = TakePhotoPositionFront;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;    p.delegate = self;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;    UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:p];<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;    [self presentViewController:nav animated:YES completion:NULL];<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;2.拍完照之后的返回的图片<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;- (void)didFinishPickingImage:(UIImage *)image;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;3.以前置摄像头开启还是以后置摄像头开启拍照功能<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;@property (nonatomic,assign)TakePhotoPosition position;
代码评论:
登录后方可评论

  
  • 暂无评论