diff --git a/ParentAssistant/ParentAssistant/Classes/controllers/Information/InformationViewController.swift b/ParentAssistant/ParentAssistant/Classes/controllers/Information/InformationViewController.swift index 0aa7a1d..3a9ae46 100644 --- a/ParentAssistant/ParentAssistant/Classes/controllers/Information/InformationViewController.swift +++ b/ParentAssistant/ParentAssistant/Classes/controllers/Information/InformationViewController.swift @@ -20,17 +20,20 @@ class InformationViewController: UIViewController,UISearchBarDelegate { let backImage = UIImage(named: "navigationBar_backgrounImage") self.navigationController?.navigationBar.setBackgroundImage(backImage, for: UIBarMetrics.default) // Do any additional setup after loading the view. + var searchViewFrame = CGRect(x: 0, y: 0, width: getScreenWidth()-100, height: 30) if isFirstviewController{ self.navigationItem.title = "" addLeftBarBtn() }else{ - + searchViewFrame.size.width = getScreenWidth()-60 } - let searchView = UISearchBar(frame: CGRect(x: 0, y: 7, width: getScreenWidth()-40, height: 30)) + let searchView = UISearchBar(frame: searchViewFrame) + let view = UIView(frame: CGRect(x: 0, y: 7, width: searchViewFrame.size.width, height: 30)) searchView.delegate = self searchView.placeholder = "请输入搜索内容" searchView.showsCancelButton = false - self.navigationItem.titleView = searchView + view.addSubview(searchView) + self.navigationItem.titleView = view self.navigationController?.navigationBar.tintColor=UIColor.white } diff --git a/ParentAssistant/ParentAssistant/Supporting Files/Info.plist b/ParentAssistant/ParentAssistant/Supporting Files/Info.plist index 06a84a3..18ab87f 100644 --- a/ParentAssistant/ParentAssistant/Supporting Files/Info.plist +++ b/ParentAssistant/ParentAssistant/Supporting Files/Info.plist @@ -17,9 +17,9 @@ <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> - <string>1.0.0</string> + <string>1.0.1</string> <key>CFBundleVersion</key> - <string>10</string> + <string>13</string> <key>ITSAppUsesNonExemptEncryption</key> <false/> <key>LSRequiresIPhoneOS</key> -- libgit2 0.21.0