Skip to content

Commit

Permalink
1.6.6 LEEAction添加contentEdgeInsets contentVerticalAlignment `co…
Browse files Browse the repository at this point in the history
…ntentHorizontalAlignment`
  • Loading branch information
lixiang1994 committed Aug 18, 2023
1 parent a53e3a5 commit 71289f6
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 5 deletions.
11 changes: 10 additions & 1 deletion LEEAlert/LEEAlert.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* @author LEE
* @copyright Copyright © 2016 - 2023年 lee. All rights reserved.
* @version V1.6.5
* @version V1.6.6
*/

#import <Foundation/Foundation.h>
Expand Down Expand Up @@ -414,6 +414,15 @@ NS_ASSUME_NONNULL_BEGIN
/** action标题的间距范围 */
@property (nonatomic, assign) UIEdgeInsets titleEdgeInsets;

/** action内容边距 */
@property (nonatomic, assign) UIEdgeInsets contentEdgeInsets;

/** action内容垂直对齐 */
@property (nonatomic, assign) UIControlContentVerticalAlignment contentVerticalAlignment;

/** action内容水平对齐 */
@property (nonatomic, assign) UIControlContentHorizontalAlignment contentHorizontalAlignment;

/** action圆角曲率 */
@property (nonatomic, assign) CGFloat cornerRadius;

Expand Down
8 changes: 7 additions & 1 deletion LEEAlert/LEEAlert.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* @author LEE
* @copyright Copyright © 2016 - 2023年 lee. All rights reserved.
* @version V1.6.5
* @version V1.6.6
*/

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

[self.titleLabel setTextAlignment:action.textAlignment];

[self setContentEdgeInsets: action.contentEdgeInsets];

[self setContentVerticalAlignment:action.contentVerticalAlignment];

[self setContentHorizontalAlignment:action.contentHorizontalAlignment];

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

[self.titleLabel setAdjustsFontSizeToFitWidth:action.adjustsFontSizeToFitWidth];
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 - 2023年 lee. All rights reserved.
* @version V1.6.5
* @version V1.6.6
*/

#ifndef LEEAlertHelper_h
Expand Down
8 changes: 6 additions & 2 deletions LEEAlertDemo/LEEAlertDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = NO;
DEVELOPMENT_TEAM = 8G74YECJ4Z;
INFOPLIST_FILE = LEEAlertDemo/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.lee.alert;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -724,7 +724,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = NO;
DEVELOPMENT_TEAM = 8G74YECJ4Z;
INFOPLIST_FILE = LEEAlertDemo/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.lee.alert;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -738,6 +738,7 @@
BUNDLE_LOADER = "$(TEST_HOST)";
DEVELOPMENT_TEAM = B9D8DJR5J5;
INFOPLIST_FILE = LEEAlertDemoTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.lee.LEEAlertDemoTests;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -751,6 +752,7 @@
BUNDLE_LOADER = "$(TEST_HOST)";
DEVELOPMENT_TEAM = B9D8DJR5J5;
INFOPLIST_FILE = LEEAlertDemoTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.lee.LEEAlertDemoTests;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -763,6 +765,7 @@
buildSettings = {
DEVELOPMENT_TEAM = B9D8DJR5J5;
INFOPLIST_FILE = LEEAlertDemoUITests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.lee.LEEAlertDemoUITests;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -775,6 +778,7 @@
buildSettings = {
DEVELOPMENT_TEAM = B9D8DJR5J5;
INFOPLIST_FILE = LEEAlertDemoUITests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.lee.LEEAlertDemoUITests;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
4 changes: 4 additions & 0 deletions UPDATELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# LEEAlert - 更新日志

V1.6.6
==============
`LEEAction`添加`contentEdgeInsets` `contentVerticalAlignment` `contentHorizontalAlignment`

V1.6.5
==============
恢复`makeKeyAndVisible`调用
Expand Down

0 comments on commit 71289f6

Please sign in to comment.