EMResourcer
这是一个基于通信的库,具备多种通信、地图、文件/媒体服务,支持 iOS 分享表单
要求
- iOS 11.0+
- Xcode 10+
安装
Cocoapods
pod 'EMResourcer'
在使用媒体选择器或音频录制服务之前,将以下代码(所需项)添加到 info.plist 中
<key>NSCameraUsageDescription</key>
<string>Take camera photos for sending media</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Take camera photos for sending media</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>Please allow access to save media in your photo library</string>
<key>NSMicrophoneUsageDescription</key>
<string>Please allow access to record audio for media sending</string>
在使用位置服务之前,将以下代码(必需项)添加到info.plist文件中
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>App needs to detect your location for sending location</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>App needs to detect your location for sending location</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>App needs to detect your location for sending location</string>
<key>NSLocationUsageDescription</key>
<string>App needs to detect your location for sending location</string>
在使用谷歌地图导航之前,将以下代码添加到info.plist文件中
<key>LSApplicationQueriesSchemes</key>
<array>
<string>comgooglemaps</string>
<string>comgooglemaps-x-callback</string>
</array>
在使用文档服务之前,将以下代码添加到info.plist文件中
<key>UIFileSharingEnabled</key>
<true/>
<key>LSSupportsOpeningDocumentsInPlace</key>
<true/>