Skip to content

Commit

Permalink
修改 qmui_stringWithNSInteger 实现方式
Browse files Browse the repository at this point in the history
  • Loading branch information
0x1306a94 committed Dec 5, 2019
1 parent a7c8969 commit 40659a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QMUIKit/UIKitExtensions/NSString+QMUI.m
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ - (NSString *)qmui_stringByReplacingPattern:(NSString *)pattern withString:(NSSt
@implementation NSString (QMUI_StringFormat)

+ (instancetype)qmui_stringWithNSInteger:(NSInteger)integerValue {
return [NSString stringWithFormat:@"%@", @(integerValue)];
return @(integerValue).stringValue;
}

+ (instancetype)qmui_stringWithCGFloat:(CGFloat)floatValue {
Expand Down

0 comments on commit 40659a8

Please sign in to comment.