为什么我看不到权限警报?我在.plist上配置它们

问题描述 投票:-3回答:1

我配置了此值,但看不到警报权限。

enter image description here

ios objective-c swift info.plist alerts
1个回答
0
投票

您必须执行2个步骤来请求权限。

  1. 配置信息.plis
  2. 使用AppDelegate(或需要权限才能执行操作的视图控制器中的代码)请求用户]
  3. 此处为示例:https://developer.apple.com/documentation/avfoundation/cameras_and_media_capture/requesting_authorization_for_media_capture_on_ios
© www.soinside.com 2019 - 2024. All rights reserved.