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。。。