Przeglądaj źródła

Create Folder : Move

Marino Faggiana 8 lat temu
rodzic
commit
7a9be1942b

+ 3 - 2
iOSClient/Move/CCMove.h

@@ -61,8 +61,9 @@
 @property (nonatomic, strong) UIColor *tintColor;
 @property (nonatomic, strong) UIColor *tintColorTitle;
 
-@property (nonatomic, weak) UIBarButtonItem *cancel;
-@property (nonatomic, weak) UIBarButtonItem *move;
+@property (nonatomic, weak) IBOutlet UIBarButtonItem *cancel;
+@property (nonatomic, weak) IBOutlet UIBarButtonItem *move;
+@property (nonatomic, weak) IBOutlet UIBarButtonItem *create;
 
 @end
 

+ 5 - 0
iOSClient/Move/CCMove.m

@@ -79,6 +79,7 @@
     self.tableView.tableFooterView = [UIView new];
 
     [self.cancel setTitle:NSLocalizedString(@"_cancel_", nil)];
+    [self.create setTitle:NSLocalizedString(@"_create_folder_", nil)];
 
     if (![self.localServerUrl length]) {
         
@@ -139,6 +140,10 @@
     [self dismissViewControllerAnimated:YES completion:nil];
 }
 
+- (IBAction)create:(UIBarButtonItem *)sender
+{
+    
+}
 
 // MARK: - BKPasscodeViewController
 

+ 10 - 4
iOSClient/Move/CCMove.storyboard

@@ -22,11 +22,11 @@
                                 <rect key="frame" x="0.0" y="22" width="375" height="60"/>
                                 <autoresizingMask key="autoresizingMask"/>
                                 <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="w3K-MH-HTI" id="o7i-Tv-3Dy">
-                                    <rect key="frame" x="0.0" y="0.0" width="342" height="59.5"/>
+                                    <rect key="frame" x="0.0" y="0.0" width="342" height="59"/>
                                     <autoresizingMask key="autoresizingMask"/>
                                     <subviews>
                                         <label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="Title" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="Z3y-WW-606">
-                                            <rect key="frame" x="15" y="0.0" width="325" height="59.5"/>
+                                            <rect key="frame" x="15" y="0.0" width="325" height="59"/>
                                             <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
                                             <fontDescription key="fontDescription" type="system" pointSize="13"/>
                                             <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
@@ -42,6 +42,11 @@
                         </connections>
                     </tableView>
                     <toolbarItems>
+                        <barButtonItem title="Create" id="POg-4h-6PE">
+                            <connections>
+                                <action selector="create:" destination="r57-Y0-NGA" id="osR-ef-mcW"/>
+                            </connections>
+                        </barButtonItem>
                         <barButtonItem style="plain" systemItem="flexibleSpace" id="W6q-bt-WEv"/>
                         <barButtonItem title="Move" id="lHO-dx-i7G">
                             <connections>
@@ -58,7 +63,8 @@
                     </navigationItem>
                     <connections>
                         <outlet property="cancel" destination="YzK-6z-T0K" id="ieh-Qu-oWw"/>
-                        <outlet property="move" destination="lHO-dx-i7G" id="fgf-TQ-kcD"/>
+                        <outlet property="create" destination="POg-4h-6PE" id="UyP-ep-sWK"/>
+                        <outlet property="move" destination="lHO-dx-i7G" id="8iF-b5-5v2"/>
                     </connections>
                 </tableViewController>
                 <placeholder placeholderIdentifier="IBFirstResponder" id="WJJ-7C-06z" userLabel="First Responder" sceneMemberID="firstResponder"/>
@@ -71,7 +77,7 @@
                 <navigationController storyboardIdentifier="CCMove" automaticallyAdjustsScrollViewInsets="NO" toolbarHidden="NO" id="GGi-ld-Icm" sceneMemberID="viewController">
                     <toolbarItems/>
                     <navigationItem key="navigationItem" id="uMb-zy-0sS"/>
-                    <navigationBar key="navigationBar" alpha="0.89999997615814209" contentMode="scaleToFill" translucent="NO" id="emo-5L-Jsr">
+                    <navigationBar key="navigationBar" alpha="0.89999997615814209" contentMode="scaleToFill" misplaced="YES" translucent="NO" id="emo-5L-Jsr">
                         <rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
                         <autoresizingMask key="autoresizingMask"/>
                     </navigationBar>

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

@@ -53,6 +53,7 @@
 "_overwrite_"               = "Overwrite";
 "_transfers_in_queue_"      = "Tranfers in progress, please wait ...";
 "_too_errors_automatic_all_"= "Too many errors, go to Control Center to verify the problem";
+"_create_folder_"           = "Create folder";
 
 // App