Skip to content

Commit

Permalink
1.3.5 LEEAction增加 numberOfLines 属性 用于设置title行数
Browse files Browse the repository at this point in the history
  • Loading branch information
lixiang1994 committed Mar 5, 2020
1 parent 5d2dd76 commit 48dd68e
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Framework/LEEAlert/LEEAlert.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 1.3.2;
MARKETING_VERSION = 1.3.5;
PRODUCT_BUNDLE_IDENTIFIER = com.lee.LEEAlert;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand Down Expand Up @@ -325,7 +325,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 1.3.2;
MARKETING_VERSION = 1.3.5;
PRODUCT_BUNDLE_IDENTIFIER = com.lee.LEEAlert;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand Down
2 changes: 1 addition & 1 deletion LEEAlert.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "LEEAlert"
s.version = "1.3.4"
s.version = "1.3.5"
s.summary = "优雅的Alert ActionSheet"

s.homepage = "https://github.com/lixiang1994/LEEAlert"
Expand Down
5 changes: 4 additions & 1 deletion LEEAlert/LEEAlert.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* @author LEE
* @copyright Copyright © 2016 - 2019年 lee. All rights reserved.
* @version V1.3.4
* @version V1.3.5
*/

#import <Foundation/Foundation.h>
Expand Down Expand Up @@ -341,6 +341,9 @@ NS_ASSUME_NONNULL_BEGIN
/** action高亮标题(attributed) */
@property (nonatomic , strong ) NSAttributedString *attributedHighlight;

/** action标题行数 */
@property (nonatomic , assign ) NSInteger numberOfLines;

/** action字体 */
@property (nonatomic , strong ) UIFont *font;

Expand Down
4 changes: 3 additions & 1 deletion LEEAlert/LEEAlert.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* @author LEE
* @copyright Copyright © 2016 - 2019年 lee. All rights reserved.
* @version V1.3.4
* @version V1.3.5
*/

#import "LEEAlert.h"
Expand Down Expand Up @@ -1454,6 +1454,8 @@ - (void)setAction:(LEEAction *)action{

if (action.attributedHighlight) [self setAttributedTitle:action.attributedHighlight forState:UIControlStateHighlighted];

if (action.numberOfLines) [self.titleLabel setNumberOfLines:action.numberOfLines];

if (action.font) [self.titleLabel setFont:action.font];

if (action.titleColor) [self setTitleColor:action.titleColor forState:UIControlStateNormal];
Expand Down
2 changes: 1 addition & 1 deletion LEEAlert/LEEAlertHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* @author LEE
* @copyright Copyright © 2016 - 2019年 lee. All rights reserved.
* @version V1.3.4
* @version V1.3.5
*/

#ifndef LEEAlertHelper_h
Expand Down
7 changes: 7 additions & 0 deletions UPDATELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@

# LEEAlert - 更新日志

V1.3.5
==============
LEEAction增加 numberOfLines 属性 用于设置title行数
```
action.numberOfLines = 2;
```

V1.3.4
==============
优化圆角内部处理
Expand Down

0 comments on commit 48dd68e

Please sign in to comment.