Skip to content

Commit 8d66a94

Browse files
committed
码币余额格式化显示
1 parent a137352 commit 8d66a94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Coding_iOS/Util/Manager/SendRewardManager.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ - (NSAttributedString *)p_titleStr{
193193

194194

195195
- (NSAttributedString *)p_bottomStr{
196-
NSString *tempStr = [NSString stringWithFormat:@"我的码币余额:%@ ", [Login curLoginUser].points_left.stringValue];
196+
NSString *tempStr = [NSString stringWithFormat:@"我的码币余额:%.2f ", [Login curLoginUser].points_left.floatValue];
197197
NSMutableAttributedString *bottomStr = [[NSMutableAttributedString alloc] initWithString:tempStr];
198198
[bottomStr addAttribute:NSForegroundColorAttributeName value:[UIColor colorWithHexString:@"0xF5A623"] range:[tempStr rangeOfString:[Login curLoginUser].points_left.stringValue]];
199199
return bottomStr;

0 commit comments

Comments
 (0)