objective-c - iOS 7.1 UIImagePickController 打开相机 Snapshotting a view
过去多啦不再A梦
过去多啦不再A梦 2017-05-02 09:23:10
0
0
581

在IOS 7.1中使用imagepickcontroller 打开相机的时候执行

    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梦

Antworte allen(0)
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage
Über uns Haftungsausschluss Sitemap
Chinesische PHP-Website:Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!