浏览代码

Change icon Plus

Marino Faggiana 8 年之前
父节点
当前提交
c919bb2b49

+ 16 - 4
iOSClient/Create/CCCreateCloud.swift

@@ -248,6 +248,8 @@ class CreateFormUpload: XLFormViewController, CCMoveDelegate {
         var section : XLFormSectionDescriptor
         var section : XLFormSectionDescriptor
         var row : XLFormRowDescriptor
         var row : XLFormRowDescriptor
 
 
+        // Section: Destination Folder
+        
         section = XLFormSectionDescriptor.formSection()
         section = XLFormSectionDescriptor.formSection()
         form.addFormSection(section)
         form.addFormSection(section)
         
         
@@ -256,6 +258,8 @@ class CreateFormUpload: XLFormViewController, CCMoveDelegate {
         row.action.formSelector = #selector(changeDestinationFolder(_:))
         row.action.formSelector = #selector(changeDestinationFolder(_:))
         section.addFormRow(row)
         section.addFormRow(row)
         
         
+        // Section: Folder Photo
+        
         section = XLFormSectionDescriptor.formSection()
         section = XLFormSectionDescriptor.formSection()
         form.addFormSection(section)
         form.addFormSection(section)
         
         
@@ -273,13 +277,13 @@ class CreateFormUpload: XLFormViewController, CCMoveDelegate {
         }
         }
         section.addFormRow(row)
         section.addFormRow(row)
 
 
-        /*
-        section = XLFormSectionDescriptor.formSection(withTitle: "B") as XLFormSectionDescriptor
+        // Section: Rename File Name
+        
+        section = XLFormSectionDescriptor.formSection()
         form.addFormSection(section)
         form.addFormSection(section)
         
         
-        row = XLFormRowDescriptor(tag: "TextFieldAndTextView", rowType: XLFormRowDescriptorTypeName, title: NSLocalizedString("_add_passport_", comment: ""))
+        row = XLFormRowDescriptor(tag: "maskFileName", rowType: XLFormRowDescriptorTypeName, title: NSLocalizedString("_filename_", comment: ""))
         section.addFormRow(row)
         section.addFormRow(row)
-        */
         
         
         self.form = form
         self.form = form
     }
     }
@@ -311,6 +315,10 @@ class CreateFormUpload: XLFormViewController, CCMoveDelegate {
                 
                 
             }
             }
         }
         }
+        else if formRow.tag == "maskFileName" {
+            
+            
+        }
     }
     }
     
     
     override func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
     override func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
@@ -330,6 +338,10 @@ class CreateFormUpload: XLFormViewController, CCMoveDelegate {
             returnTitle = NSLocalizedString("_use_folder_photos_", comment: "")
             returnTitle = NSLocalizedString("_use_folder_photos_", comment: "")
         }
         }
         
         
+        if section == 2 {
+            returnTitle = NSLocalizedString("_rename_filename_", comment: "")
+        }
+        
         return returnTitle
         return returnTitle
     }
     }
 
 

二进制
iOSClient/Images.xcassets/Plus.imageset/Plus@2x.png


+ 21 - 0
iOSClient/Images.xcassets/PlusClear.imageset/Contents.json

@@ -0,0 +1,21 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "PlusClear@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

二进制
iOSClient/Images.xcassets/PlusClear.imageset/PlusClear@2x.png


+ 2 - 0
iOSClient/en.lproj/Localizable.strings

@@ -478,6 +478,8 @@
 
 
 "_destination_folder_"              = "Destination folder";
 "_destination_folder_"              = "Destination folder";
 "_use_folder_photos_"               = "Use the folder Photos as destination";
 "_use_folder_photos_"               = "Use the folder Photos as destination";
+"_rename_filename_"                 = "Rename file name";
+"_filename_"                        = "File name";
 
 
 // -----------------------------------------------------------------------------------------------------------
 // -----------------------------------------------------------------------------------------------------------