From 8b034637ea74cbcff275b1ec961951d65119d4b0 Mon Sep 17 00:00:00 2001 From: Leo Date: Tue, 22 Nov 2016 18:57:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=A0=87=E9=A2=98=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E6=97=B6=E7=9A=84=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LCActionSheet.podspec | 2 +- LCActionSheet/LCActionSheet.h | 2 +- LCActionSheet/LCActionSheet.m | 8 ++++++++ LCActionSheetDemo.xcodeproj/project.pbxproj | 2 ++ LCActionSheetDemo/Info.plist | 2 +- README.md | 6 ++++++ 6 files changed, 19 insertions(+), 3 deletions(-) diff --git a/LCActionSheet.podspec b/LCActionSheet.podspec index 3391097..db25add 100644 --- a/LCActionSheet.podspec +++ b/LCActionSheet.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "LCActionSheet" - s.version = "2.6.0" + s.version = "2.6.1" s.summary = "A simple, ornamental, but powerful action sheet! Support: http://LeoDev.me" s.homepage = "https://github.com/iTofu/LCActionSheet" s.license = "MIT" diff --git a/LCActionSheet/LCActionSheet.h b/LCActionSheet/LCActionSheet.h index fc05118..def480c 100644 --- a/LCActionSheet/LCActionSheet.h +++ b/LCActionSheet/LCActionSheet.h @@ -8,7 +8,7 @@ // GitHub: http://github.com/iTofu // Mail: mailto:devtip@163.com // -// V 2.6.0 +// V 2.6.1 #import diff --git a/LCActionSheet/LCActionSheet.m b/LCActionSheet/LCActionSheet.m index 557d1af..2d41c8a 100644 --- a/LCActionSheet/LCActionSheet.m +++ b/LCActionSheet/LCActionSheet.m @@ -44,6 +44,8 @@ @interface LCActionSheet () 0 ? 14.0f : 0); }]; + + self.lineView.hidden = !self.title || self.title.length == 0; } - (void)setCancelButtonTitle:(NSString *)cancelButtonTitle { diff --git a/LCActionSheetDemo.xcodeproj/project.pbxproj b/LCActionSheetDemo.xcodeproj/project.pbxproj index 9396285..6c94f8f 100644 --- a/LCActionSheetDemo.xcodeproj/project.pbxproj +++ b/LCActionSheetDemo.xcodeproj/project.pbxproj @@ -612,6 +612,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = "Brand Assets"; + DEVELOPMENT_TEAM = ""; INFOPLIST_FILE = LCActionSheetDemo/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 7.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; @@ -626,6 +627,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = "Brand Assets"; + DEVELOPMENT_TEAM = ""; INFOPLIST_FILE = LCActionSheetDemo/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 7.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; diff --git a/LCActionSheetDemo/Info.plist b/LCActionSheetDemo/Info.plist index 8d54dc0..e121d1f 100644 --- a/LCActionSheetDemo/Info.plist +++ b/LCActionSheetDemo/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 2.6.0 + 2.6.1 CFBundleSignature ???? CFBundleVersion diff --git a/README.md b/README.md index ab276c2..c799f2f 100644 --- a/README.md +++ b/README.md @@ -179,6 +179,12 @@ In me the tiger sniffs the rose. ## 版本 ChangeLog + +### V 2.6.1 (2016.11.22) + +* 优化标题为空时的效果。 + + ### V 2.6.0 (2016.10.22) * 修复取消按钮不显示时 UI 上的一个 Bug。另外你可以通过设置 `cancelButtonTitle` 为 `nil` 或 `@""` 来不显示取消按钮,这是一个 Tip,并不是一个 Feature。。。