diff --git a/PYSearch/PYSearchViewController.m b/PYSearch/PYSearchViewController.m index ac3c409..1b9079f 100755 --- a/PYSearch/PYSearchViewController.m +++ b/PYSearch/PYSearchViewController.m @@ -117,8 +117,7 @@ - (void)viewDidLayoutSubviews self.searchHistories = self.searchHistories; self.currentOrientation = [[UIDevice currentDevice] orientation]; } - - self.navigationItem.titleView.py_x = PYSEARCH_MARGIN * 2; + self.navigationItem.titleView.py_x = [[[UIDevice currentDevice] systemVersion] intValue] >= 11.0 ? PYSEARCH_MARGIN * 0.5 : PYSEARCH_MARGIN * 2.0; self.navigationItem.titleView.py_y = self.view.py_width > self.view.py_height ? 3 : 7; self.navigationItem.titleView.py_width = self.view.py_width - 44 - self.navigationItem.titleView.py_x * 2; self.navigationItem.titleView.py_height = self.view.py_width > self.view.py_height ? 24 : 30; diff --git a/PYSearchExample/PYSearchExample.xcodeproj/project.pbxproj b/PYSearchExample/PYSearchExample.xcodeproj/project.pbxproj index 12e2f64..516e1e5 100644 --- a/PYSearchExample/PYSearchExample.xcodeproj/project.pbxproj +++ b/PYSearchExample/PYSearchExample.xcodeproj/project.pbxproj @@ -492,6 +492,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + DEVELOPMENT_TEAM = ""; INFOPLIST_FILE = PYSearchExample/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 7.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; @@ -505,6 +506,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + DEVELOPMENT_TEAM = ""; INFOPLIST_FILE = PYSearchExample/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 7.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";