Jok*_*ker 8 iphone xcode objective-c uilabel
NSString *strDay = [dic objectForKey:@"day"];
NSString *uppercaseString = [strDay uppercaseString];
cell.dayLabel.text = uppercaseString;
Run Code Online (Sandbox Code Playgroud)
这是正确的方法吗?但我只得到大写.我希望"sunday"能像"SUN"一样显示在视野中.
Soh*_*aib 20
这个怎么样?
NSString *uppercaseString = [strDay uppercaseString];
cell.dayLabel.text = [uppercaseString substringToIndex:3];
Run Code Online (Sandbox Code Playgroud)
假设它有一个有效的日子
| 归档时间: |
|
| 查看次数: |
11341 次 |
| 最近记录: |