From 480ead26e6e91c4ea3752e10e934dcdede4576bb Mon Sep 17 00:00:00 2001 From: WenchaoD Date: Tue, 6 Sep 2016 16:35:30 +0800 Subject: [PATCH] Change deployment target to 8.0, fix warnings --- Example/DelegateAppearanceViewController.m | 2 +- Example/FSCalendar.xcodeproj/project.pbxproj | 12 ++++++------ Example/FSTableViewController.m | 2 +- Example/FullScreenExampleViewController.m | 4 ++-- Example/StoryboardExampleViewController.m | 2 +- FSCalendar/Info.plist | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Example/DelegateAppearanceViewController.m b/Example/DelegateAppearanceViewController.m index 228375a..565edaa 100644 --- a/Example/DelegateAppearanceViewController.m +++ b/Example/DelegateAppearanceViewController.m @@ -104,7 +104,7 @@ self.calendar = calendar; - UIBarButtonItem *todayItem = [[UIBarButtonItem alloc] initWithTitle:@"TODAY" style:UIBarButtonItemStyleBordered target:self action:@selector(todayItemClicked:)]; + UIBarButtonItem *todayItem = [[UIBarButtonItem alloc] initWithTitle:@"TODAY" style:UIBarButtonItemStylePlain target:self action:@selector(todayItemClicked:)]; self.navigationItem.rightBarButtonItem = todayItem; } diff --git a/Example/FSCalendar.xcodeproj/project.pbxproj b/Example/FSCalendar.xcodeproj/project.pbxproj index c732cbb..48fc6ad 100644 --- a/Example/FSCalendar.xcodeproj/project.pbxproj +++ b/Example/FSCalendar.xcodeproj/project.pbxproj @@ -725,7 +725,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 7.0; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -762,7 +762,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 7.0; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; VALIDATE_PRODUCT = YES; @@ -775,7 +775,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; INFOPLIST_FILE = "$(SRCROOT)/Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 7.0; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.wenchao.FSCalendarExample; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -789,7 +789,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; INFOPLIST_FILE = "$(SRCROOT)/Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 7.0; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.wenchao.FSCalendarExample; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -811,7 +811,7 @@ ); INFOPLIST_FILE = "$(SRCROOT)/../FSCalendar/Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 7.0; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.wenchao.FSCalendar; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -832,7 +832,7 @@ DYLIB_INSTALL_NAME_BASE = "@rpath"; INFOPLIST_FILE = "$(SRCROOT)/../FSCalendar/Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 7.0; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.wenchao.FSCalendar; PRODUCT_NAME = "$(TARGET_NAME)"; diff --git a/Example/FSTableViewController.m b/Example/FSTableViewController.m index 7961c73..7dfa073 100644 --- a/Example/FSTableViewController.m +++ b/Example/FSTableViewController.m @@ -21,7 +21,7 @@ { [super viewDidLoad]; - self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"" style:UIBarButtonItemStyleBordered target:nil action:nil]; + self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"" style:UIBarButtonItemStylePlain target:nil action:nil]; self.viewControllers = @[ [ScopeHandleViewController class], diff --git a/Example/FullScreenExampleViewController.m b/Example/FullScreenExampleViewController.m index 26a1bb0..7d0ee52 100644 --- a/Example/FullScreenExampleViewController.m +++ b/Example/FullScreenExampleViewController.m @@ -50,9 +50,9 @@ [self.view addSubview:calendar]; self.calendar = calendar; - UIBarButtonItem *todayItem = [[UIBarButtonItem alloc] initWithTitle:@"Today" style:UIBarButtonItemStyleBordered target:self action:@selector(todayItemClicked:)]; + UIBarButtonItem *todayItem = [[UIBarButtonItem alloc] initWithTitle:@"Today" style:UIBarButtonItemStylePlain target:self action:@selector(todayItemClicked:)]; - UIBarButtonItem *lunarItem = [[UIBarButtonItem alloc] initWithTitle:@"Lunar" style:UIBarButtonItemStyleBordered target:self action:@selector(lunarItemClicked:)]; + UIBarButtonItem *lunarItem = [[UIBarButtonItem alloc] initWithTitle:@"Lunar" style:UIBarButtonItemStylePlain target:self action:@selector(lunarItemClicked:)]; [lunarItem setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor magentaColor]} forState:UIControlStateNormal]; self.navigationItem.rightBarButtonItems = @[lunarItem, todayItem]; } diff --git a/Example/StoryboardExampleViewController.m b/Example/StoryboardExampleViewController.m index a164285..75b1fc8 100644 --- a/Example/StoryboardExampleViewController.m +++ b/Example/StoryboardExampleViewController.m @@ -25,7 +25,7 @@ { [super viewDidLoad]; - self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"" style:UIBarButtonItemStyleBordered target:nil action:nil]; + self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"" style:UIBarButtonItemStylePlain target:nil action:nil]; _lunarCalendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierChinese]; _lunarCalendar.locale = [NSLocale localeWithLocaleIdentifier:@"zh-CN"]; diff --git a/FSCalendar/Info.plist b/FSCalendar/Info.plist index 60f7e2b..91a0d06 100644 --- a/FSCalendar/Info.plist +++ b/FSCalendar/Info.plist @@ -9,7 +9,7 @@ CFBundleIdentifier $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion - 6.0 + 8.0 CFBundleName $(PRODUCT_NAME) CFBundlePackageType