瀏覽代碼

1.优化相册权限读取时间

huangxiaodong 1 年之前
父節點
當前提交
f1283b54b1

+ 1 - 2
创维盒子/双子星云手机/Class/Set/uploadFile/uploadImageOrVideoViewController.m

@@ -51,7 +51,6 @@
     // Do any additional setup after loading the view.
     
     [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(getCouldPhoneBaseInfoFun:)  name:getCouldPhoneBaseInfoNotification  object:nil];
-    
     [self.view setBackgroundColor:HWF5F7FAColor];
     
     [self.toolBar setHidden:YES];
@@ -229,7 +228,7 @@
     if (![[TZImageManager manager] authorizationStatusAuthorized]){
         [PHPhotoLibrary requestAuthorization:^(PHAuthorizationStatus status) {
             if(status == PHAuthorizationStatusAuthorized){
-                dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
+                dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
                     [self.photoGroupView setupGroup];
                     [self delayedSetPhotoGroupViewFrameFun];
                 });