Commit 9c2c2f54 authored by Sandy's avatar Sandy

相册权限申请

parent 6f380d3d
...@@ -133,6 +133,12 @@ ...@@ -133,6 +133,12 @@
self.commentInputTextFieldView.inputAccessoryView = self.bottomView.toolView; self.commentInputTextFieldView.inputAccessoryView = self.bottomView.toolView;
if (![[self class] determinePhotosPermissions]) {
UIAlertController *alertVC = [UIAlertController alertControllerWithTitle:@"提示" message:@"请在iPad的“设置-隐私-相册”选项中,允许欧立方访问你的相册" preferredStyle:UIAlertControllerStyleAlert];
[alertVC addAction:[UIAlertAction actionWithTitle:@"知道了" style:UIAlertActionStyleCancel handler:nil]];
[self presentViewController:alertVC animated:YES completion:nil];
}
} }
#pragma mark - WKWebView/photoManager #pragma mark - WKWebView/photoManager
......
...@@ -203,6 +203,7 @@ typedef NS_ENUM(NSInteger, ItemIndex) { ...@@ -203,6 +203,7 @@ typedef NS_ENUM(NSInteger, ItemIndex) {
[self.viewController presentViewController:alertVC animated:YES completion:nil]; [self.viewController presentViewController:alertVC animated:YES completion:nil];
return; return;
} }
MWPhotoBrowser *browser = [[MWPhotoBrowser alloc] initWithDelegate:self]; MWPhotoBrowser *browser = [[MWPhotoBrowser alloc] initWithDelegate:self];
browser.displayActionButton = YES; browser.displayActionButton = YES;
browser.displayNavArrows = YES; browser.displayNavArrows = YES;
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<key>CFBundleName</key> <key>CFBundleName</key>
<string>欧立方</string> <string>欧立方</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>2.1.2</string> <string>2.1.3</string>
<key>CFBundleURLTypes</key> <key>CFBundleURLTypes</key>
<array> <array>
<dict> <dict>
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
</dict> </dict>
</array> </array>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>2.1.2</string> <string>2.1.3</string>
<key>LSApplicationQueriesSchemes</key> <key>LSApplicationQueriesSchemes</key>
<array> <array>
<string>wechat</string> <string>wechat</string>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment