search

Home  >  Q&A  >  body text

iOS 7.1 UIImagePickController Open camera Snapshotting a view - Stack Overflow

Use imagepickcontroller to execute when opening the camera in IOS 7.1

    self.picker.delegate = self;
    self.picker.sourceType = UIImagePickerControllerSourceTypeCamera;
    self.picker.showsCameraControls = YES;
    self.picker.modalPresentationStyle = UIModalPresentationOverCurrentContext;
    self.picker.cameraViewTransform = CGAffineTransformMakeScale(1, 1);
    [Controller presentViewController:_picker animated:YES completion:nil];
    
  presentViewController命令中在输出这段命令是怎么回事,看的烦死了。网上的办法试过了,延迟执行。没用啊  
    

Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates.

过去多啦不再A梦过去多啦不再A梦2886 days ago662

reply all(0)I'll reply

No reply
  • Cancelreply