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

1.修改iOS Apex Mobile去除返回键标题国际化。
2.修改iOS Apex Mobile搜素按钮标题。

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

+ 3 - 0
Apex Mobile/Apex Mobile/LocalDocumentsViewController.m

@@ -351,6 +351,9 @@
     self.selectedDocumentPath = file_url;
     
     if (self.selectedDocumentPath) {
+        UIBarButtonItem *backItem = [[UIBarButtonItem alloc] init];
+        backItem.title = @"Back";
+        self.navigationItem.backBarButtonItem = backItem;
         [self.navigationController pushViewController:self.quickLook animated:YES];
     }
     

+ 5 - 0
Apex Mobile/Apex Mobile/RootViewController.m

@@ -31,6 +31,11 @@
     
 //    [UIStoryboard storyboardWithName:@"EnumSelectAndSort" bundle:nil]
     
+    UIBarButtonItem *backItem = [[UIBarButtonItem alloc] init];
+    backItem.title = @"Back";
+    self.navigationItem.backBarButtonItem = backItem;
+    
+    
     LoginViewController * loginVC = [ [UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateViewControllerWithIdentifier:@"LoginPanel"];
     loginVC.loginSuccessful = ^(void)
     {

+ 2 - 3
Apex Mobile/Apex Mobile/ShipSearch.storyboard

@@ -1,12 +1,11 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13529" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
     <device id="retina4_7" orientation="portrait">
         <adaptation id="fullscreen"/>
     </device>
     <dependencies>
         <deployment identifier="iOS"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13527"/>
-        <capability name="Alignment constraints with different attributes" minToolsVersion="5.1"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/>
         <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
     </dependencies>
     <scenes>

+ 8 - 0
Apex Mobile/Apex Mobile/ShipSearchController.m

@@ -40,6 +40,7 @@
         self.automaticallyAdjustsScrollViewInsets = NO;
     }
 
+    [[UIBarButtonItem appearanceWhenContainedInInstancesOfClasses:@[[UISearchBar class]]] setTitle:@"Search"];
     
     [self configureNavigationBar];
     [self configureTableView];
@@ -89,6 +90,10 @@
     self.currentMode = 0;
     self.segmentedControl.selectedSegmentIndex = self.currentMode;
     self.navigationItem.titleView = self.segmentedControl;
+    
+    UIBarButtonItem *backItem = [[UIBarButtonItem alloc] init];
+    backItem.title = @"Back";
+    self.navigationItem.backBarButtonItem = backItem;
 }
 
 - (void)configureTableView {
@@ -234,6 +239,9 @@
 }
 
 - (void)searchBarCancelButtonClicked:(UISearchBar *)searchBar {
+    
+    [self searchBarSearchButtonClicked:searchBar];
+    
     [searchBar resignFirstResponder];
 }