修改键盘长按立即清空和撤销删除
This commit is contained in:
@@ -17,12 +17,12 @@
|
||||
|
||||
- (NSString *)coinsDisplayText {
|
||||
NSString *name = self.name ?: @"";
|
||||
NSString *unit = self.unit ?: @"";
|
||||
if (name.length && unit.length) {
|
||||
return [NSString stringWithFormat:@"%@ %@", name, unit];
|
||||
// NSString *unit = self.unit ?: @"";
|
||||
if (name.length) {
|
||||
return [NSString stringWithFormat:@"%@", name];
|
||||
}
|
||||
if (name.length) { return name; }
|
||||
if (unit.length) { return unit; }
|
||||
// if (unit.length) { return unit; }
|
||||
return @"";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user