被拒邮件:
Guideline 2.1 - Performance - App Completeness
We discovered one or more bugs in your app when reviewed on iPad running iOS 13.4.1 on Wi-Fi.
Specifically, the app was unresponsive while tapping the camera and photos buttons.
Next Steps
To resolve this issue, please run your app on a device to identify any issues, then revise and resubmit your app for review.
If we misunderstood the intended behavior of your app, please reply to this message in Resolution Center to provide information on how these features were intended to work.
For new apps, uninstall all previous versions of your app from a device, then install and follow the steps to reproduce the issue. For updates, install the new version as an update to the previous version, then follow the steps to reproduce the issue.
Resources
For information about testing your app and preparing it for review, please see Technical Note TN2431: App Testing Guide.
For a networking overview, please review About Networking.
Please see attached screenshot for details.
翻译:
指南2.1款-性能-应用程序完整性
我们在运行iOS的iPad上查看时发现你的应用程序中有一个或多个错误13.4.1条在Wi-Fi上。
具体来说,该应用程序在点击相机和照片按钮时没有响应。
下一步
若要解决此问题,请在设备上运行应用程序以确定任何问题,然后修订并重新提交应用程序以供审阅。
如果我们误解了您的应用程序的预期行为,请在Resolution Center中回复此消息,以提供有关这些功能的预期工作方式的信息。
对于新应用程序,请从设备中卸载所有以前版本的应用程序,然后安装并按照步骤重现问题。对于更新,请将新版本安装为对以前版本的更新,然后按照步骤重现问题。
资源
有关测试应用程序并准备进行审阅的信息,请参阅技术说明TN2431:应用程序测试指南。
有关网络概述,请查看有关网络的信息。
详情请参阅附件截图。
解决方案:
检查代码发现这里用了UIActionSheet,在iPad上操作是没有响应的,无法调起相机和相册,改为UIActionController就可以了,修改以后再次提交审核通过。
在iPad上调用相机和相册的代码如下:
UIAlertController * alert = [UIAlertController alertControllerWithTitle:nil message:nil preferredStyle:UIAlertControllerStyleActionSheet]; weakify(self); [alert addAction:[UIAlertAction actionWithTitle:@"拍照" style:UIAlertActionStyleDestructive handler:^(UIAlertAction * _Nonnull action) { [weakSelf takePhoto]; }]]; [alert addAction:[UIAlertAction actionWithTitle:@"从相册选择" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) { [weakSelf localPhoto]; }]]; [alert addAction:[UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:^(UIAlertAction * _Nonnull action) { }]]; alert.modalPresentationStyle = UIModalPresentationOverFullScreen; UIPopoverPresentationController *popover = alert.popoverPresentationController; if (popover) { popover.sourceView = self.view; popover.permittedArrowDirections = UIPopoverArrowDirectionUp; popover.sourceRect = CGRectMake(sourceView.origin.x, sourceView.origin.y+200, sourceView.width, sourceView.height); } [self presentViewController:alert animated:YES completion:nil];