搜尋

首頁  >  問答  >  主體

objective-c - iOS 7.1 UIImagePickController 開啟相機 Snapshotting a view

在IOS 7.1中使用imagepickcontroller 開啟相機的時候執行

1

2

3

4

5

6

7

8

9

<code>    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命令中在输出这段命令是怎么回事,看的烦死了。网上的办法试过了,延迟执行。没用啊 

    </code>

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梦2890 天前664

全部回覆(0)我來回復

無回覆
  • 取消回覆