Marino Faggiana 7 年 前
コミット
e5aae63284
2 ファイル変更8 行追加2 行削除
  1. 4 1
      iOSClient/Main/CCMain.m
  2. 4 1
      iOSClient/QuickActions/CCQuickActions.m

+ 4 - 1
iOSClient/Main/CCMain.m

@@ -708,8 +708,11 @@
     [PHPhotoLibrary requestAuthorization:^(PHAuthorizationStatus status){
         dispatch_async(dispatch_get_main_queue(), ^{
             
+            CTAssetCheckmark *checkmark = [CTAssetCheckmark appearance];
+            [checkmark setMargin:0.0 forVerticalEdge:NSLayoutAttributeRight horizontalEdge:NSLayoutAttributeBottom];
+            
             // init picker
-            CTAssetsPickerController *picker = [[CTAssetsPickerController alloc] init];
+            CTAssetsPickerController *picker = [CTAssetsPickerController new];
             
             // set delegate
             picker.delegate = self;

+ 4 - 1
iOSClient/QuickActions/CCQuickActions.m

@@ -101,8 +101,11 @@
     [PHPhotoLibrary requestAuthorization:^(PHAuthorizationStatus status) {
         dispatch_async(dispatch_get_main_queue(), ^{
             
+            CTAssetCheckmark *checkmark = [CTAssetCheckmark appearance];
+            [checkmark setMargin:0.0 forVerticalEdge:NSLayoutAttributeRight horizontalEdge:NSLayoutAttributeBottom];
+            
             // init picker
-            _picker = [[CTAssetsPickerController alloc] init];
+            _picker = [CTAssetsPickerController new];
             
             // set delegate
             _picker.delegate = self;