Skip to content

Commit

Permalink
Merge pull request Tencent#870 from 0x1306a94/master
Browse files Browse the repository at this point in the history
修改 qmui_stringWithNSInteger 实现方式
  • Loading branch information
MoLice authored Dec 5, 2019
2 parents a7c8969 + 40659a8 commit fa2347e
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 fa2347e

Please sign in to comment.