Commit 9df31148035f63a549b1082abec65cba331c485a
1 parent
85f14aee
Exists in
parentassistant
no message
Showing
2 changed files
with
8 additions
and
5 deletions
Show diff stats
ParentAssistant/ParentAssistant/Classes/controllers/Information/InformationViewController.swift
| ... | ... | @@ -20,17 +20,20 @@ class InformationViewController: UIViewController,UISearchBarDelegate { |
| 20 | 20 | let backImage = UIImage(named: "navigationBar_backgrounImage") |
| 21 | 21 | self.navigationController?.navigationBar.setBackgroundImage(backImage, for: UIBarMetrics.default) |
| 22 | 22 | // Do any additional setup after loading the view. |
| 23 | + var searchViewFrame = CGRect(x: 0, y: 0, width: getScreenWidth()-100, height: 30) | |
| 23 | 24 | if isFirstviewController{ |
| 24 | 25 | self.navigationItem.title = "" |
| 25 | 26 | addLeftBarBtn() |
| 26 | 27 | }else{ |
| 27 | - | |
| 28 | + searchViewFrame.size.width = getScreenWidth()-60 | |
| 28 | 29 | } |
| 29 | - let searchView = UISearchBar(frame: CGRect(x: 0, y: 7, width: getScreenWidth()-40, height: 30)) | |
| 30 | + let searchView = UISearchBar(frame: searchViewFrame) | |
| 31 | + let view = UIView(frame: CGRect(x: 0, y: 7, width: searchViewFrame.size.width, height: 30)) | |
| 30 | 32 | searchView.delegate = self |
| 31 | 33 | searchView.placeholder = "请输入搜索内容" |
| 32 | 34 | searchView.showsCancelButton = false |
| 33 | - self.navigationItem.titleView = searchView | |
| 35 | + view.addSubview(searchView) | |
| 36 | + self.navigationItem.titleView = view | |
| 34 | 37 | self.navigationController?.navigationBar.tintColor=UIColor.white |
| 35 | 38 | } |
| 36 | 39 | ... | ... |
ParentAssistant/ParentAssistant/Supporting Files/Info.plist
| ... | ... | @@ -17,9 +17,9 @@ |
| 17 | 17 | <key>CFBundlePackageType</key> |
| 18 | 18 | <string>APPL</string> |
| 19 | 19 | <key>CFBundleShortVersionString</key> |
| 20 | - <string>1.0.0</string> | |
| 20 | + <string>1.0.1</string> | |
| 21 | 21 | <key>CFBundleVersion</key> |
| 22 | - <string>10</string> | |
| 22 | + <string>13</string> | |
| 23 | 23 | <key>ITSAppUsesNonExemptEncryption</key> |
| 24 | 24 | <false/> |
| 25 | 25 | <key>LSRequiresIPhoneOS</key> | ... | ... |