Browse Source

add automaticallyTintButtonImages

Marino Faggiana 8 years ago
parent
commit
6372229255
2 changed files with 11 additions and 9 deletions
  1. 4 2
      iOSClient/Create/CCCreateCloud.swift
  2. 7 7
      iOSClient/Main/CCMain.m

+ 4 - 2
iOSClient/Create/CCCreateCloud.swift

@@ -35,6 +35,8 @@ class CreateMenu: NSObject {
         let actionSheet = AHKActionSheet.init(view: view, title: nil)
         
         actionSheet?.animationDuration = 0.2
+        actionSheet?.cancelOnTapEmptyAreaEnabled = 1
+        actionSheet?.automaticallyTintButtonImages = 0
         
         actionSheet?.blurRadius = 0.0
         actionSheet?.blurTintColor = UIColor(white: 0.0, alpha: 0.50)
@@ -42,8 +44,6 @@ class CreateMenu: NSObject {
         actionSheet?.buttonHeight = 50.0
         actionSheet?.cancelButtonHeight = 50.0
         
-        actionSheet?.automaticallyTintButtonImages = 0
-        
         actionSheet?.selectedBackgroundColor = UIColor(colorLiteralRed: 0.0/255.0, green: 130.0/255.0, blue: 201.0/255.0, alpha: 0.1)
         actionSheet?.separatorColor = UIColor(colorLiteralRed: 153.0/255.0, green: 153.0/255.0, blue: 153.0/255.0, alpha: 0.2)
 
@@ -78,6 +78,7 @@ class CreateMenu: NSObject {
         let actionSheet = AHKActionSheet.init(view: view, title: nil)
         
         actionSheet?.animationDuration = 0.2
+        actionSheet?.cancelOnTapEmptyAreaEnabled = 1
         
         actionSheet?.blurRadius = 0.0
         actionSheet?.blurTintColor = UIColor(white: 0.0, alpha: 0.50)
@@ -119,6 +120,7 @@ class CreateMenu: NSObject {
         let actionSheet = AHKActionSheet.init(view: view, title: nil)
         
         actionSheet?.animationDuration = 0.2
+        actionSheet?.cancelOnTapEmptyAreaEnabled = 1
         
         actionSheet?.blurRadius = 0.0
         actionSheet?.blurTintColor = UIColor(white: 0.0, alpha: 0.50)

+ 7 - 7
iOSClient/Main/CCMain.m

@@ -4228,12 +4228,12 @@
         AHKActionSheet *actionSheet = [[AHKActionSheet alloc] initWithView:self.view title:nil];
         
         actionSheet.animationDuration = 0.2;
-        
+        actionSheet.cancelOnTapEmptyAreaEnabled = @(YES);
+        actionSheet.automaticallyTintButtonImages = @(NO);
+
         actionSheet.blurRadius = 0.0f;
         actionSheet.blurTintColor = [UIColor colorWithWhite:0.0f alpha:0.50f];
         
-        actionSheet.automaticallyTintButtonImages = 0;
-        
         actionSheet.buttonHeight = 50.0;
         actionSheet.cancelButtonHeight = 50.0f;
         
@@ -4368,11 +4368,11 @@
         AHKActionSheet *actionSheet = [[AHKActionSheet alloc] initWithView:self.view title:nil];
         
         actionSheet.animationDuration = 0.2;
+        actionSheet.cancelOnTapEmptyAreaEnabled = @(YES);
+        actionSheet.automaticallyTintButtonImages = @(NO);
         
         actionSheet.blurRadius = 0.0f;
         actionSheet.blurTintColor = [UIColor colorWithWhite:0.0f alpha:0.50f];
-
-        actionSheet.automaticallyTintButtonImages = 0;
         
         actionSheet.buttonHeight = 50.0;
         actionSheet.cancelButtonHeight = 50.0f;
@@ -4508,11 +4508,11 @@
         AHKActionSheet *actionSheet = [[AHKActionSheet alloc] initWithView:self.view title:nil];
      
         actionSheet.animationDuration = 0.2;
+        actionSheet.cancelOnTapEmptyAreaEnabled = @(YES);
+        actionSheet.automaticallyTintButtonImages = @(NO);
         
         actionSheet.blurRadius = 0.0f;
         actionSheet.blurTintColor = [UIColor colorWithWhite:0.0f alpha:0.50f];
-
-        actionSheet.automaticallyTintButtonImages = 0;
         
         actionSheet.buttonHeight = 50.0;
         actionSheet.cancelButtonHeight = 50.0f;