Переглянути джерело

1.修改iOS Apex Mobile Search,增加搜索框。

Pen Li 8 роки тому
батько
коміт
7fd04d62fd

+ 2 - 0
Apex Mobile/Apex Mobile/Main.storyboard

@@ -1050,9 +1050,11 @@
                         </barButtonItem>
                     </navigationItem>
                     <connections>
+                        <outlet property="searchToolbar" destination="s08-SO-Hkg" id="260-wc-TT5"/>
                         <outlet property="searchaBar" destination="NyC-qf-cxA" id="wOE-VA-NbS"/>
                         <outlet property="table" destination="ppj-4o-rzu" id="Kjn-ln-5de"/>
                         <outlet property="tableBottomConstraint" destination="1YZ-fZ-RGu" id="Smh-1r-hxm"/>
+                        <outlet property="toolBarheightConstraint" destination="l4v-hS-UAY" id="9Q8-6t-wPy"/>
                     </connections>
                 </viewController>
                 <placeholder placeholderIdentifier="IBFirstResponder" id="erf-Re-vM1" userLabel="First Responder" sceneMemberID="firstResponder"/>

+ 9 - 0
Apex Mobile/Apex Mobile/SearchViewController.m

@@ -22,6 +22,8 @@
 @property (strong, nonatomic) IBOutlet NSLayoutConstraint *tableBottomConstraint;
 @property (nonatomic,assign) BOOL showTable;
 @property (nonatomic,strong) NSIndexPath *editingIndexPath;
+@property (strong, nonatomic) IBOutlet NSLayoutConstraint *toolBarheightConstraint;
+@property (strong, nonatomic) IBOutlet UIToolbar *searchToolbar;
 
 @end
 
@@ -62,6 +64,13 @@
     
     self.table.tableFooterView = [UIView new];
     self.searchaBar.delegate = self;
+    
+    if ([self.function_name isEqualToString:@"Download Document"]) {
+        self.toolBarheightConstraint.constant = 0;
+        [self.view layoutIfNeeded];
+        self.searchToolbar.hidden = YES;
+        self.showTable = YES;
+    }
 }
 
 - (void)viewWillDisappear:(BOOL)animated {