我有一个长字符串:
NSString* string=@"I'm very long, you can't handle me in one small label, you should separate me and use 2 labels";
所以我有两个标签。我想剪切字符串的头部以适合第一个标签:
[string giveMeSomeTextSuitableForFirstLabel]
- 例如;
结果应该是:@"I'm very long"
字符串的其余部分应为:@", you can't handle me in one small label, you should separate me and use 2 labels";
我不能使用1个标签而不是2个,因为角落上有一个图像覆盖了我的第一行。
答案 0 :(得分:2)