UIIMagePickerController +相机+全屏捕捉照片

时间:2015-09-28 11:47:22

标签: ios iphone

您好我正在使用UIImagePickerController来源类型相机。我很想知道它没有显示完全捕获模式,如iOS联系人应用程序(从相机拍摄个人资料照片)。

我的代码显示了带有黑色屏幕的顶部和底部栏以及iOS原生节目全屏幕捕捉相同的下一个重拍屏幕。

以下是我的截屏enter image description here

2 个答案:

答案 0 :(得分:0)

com.amazonaws.AmazonClientException: Unable to execute HTTP request: peer not authenticated
    at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:328)
    at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:165)
    at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:2906)
    at com.amazonaws.services.s3.AmazonS3Client.putObject(AmazonS3Client.java:1123)
    at com.housejoy.ce.jaxb.S3Upload.uploadImage(S3Upload.java:32)......
Caused by: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
    at sun.security.ssl.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:421)
    at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128)
    at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:572)
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
    at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:151)........com.amazonaws.AmazonClientException: Unable to execute HTTP request: peer not authenticated
    at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:328)
    at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:165)
    at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:2906)
    at com.amazonaws.services.s3.AmazonS3Client.putObject(AmazonS3Client.java:1123)
    at com.housejoy.ce.jaxb.S3Upload.uploadImage(S3Upload.java:32)
    at com.housejoy.ce.service.UploadImageService.uploadImage(UploadImageService.java:171.................Caused by: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
    at sun.security.ssl.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:421)
    at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128)
    at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:572)
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)

答案 1 :(得分:0)

我认为这是UIImagePickerController的默认行为(捕获区域周围有黑条,至少在某些设备上)。

联系人应用程序可能只是在演示之前改变其-cameraViewTransform属性以使用捕获视图填充整个屏幕,但此设置根据您即将使用的设备和捕获质量而有所不同。