一些 UILabel 带有一个大文本
我有一个很大的 NSString ,里面有很多符号,我想用它制作一些 UILabels 。 例如: 我的文字:我来自莫斯科。我的昵称是 itruf。 结果: 第一个标签:我来自莫斯科。 第二个标签:我的昵称是 第三个标签:itruf。
所有 UILabel 必须有一种大小和字体(我想进行分页,如 bookmate 或 ibooks)。
PS:我想用我的标签制作 NSArray 。
I have one big NSString with a lot of symbols and I want to make some UILabels with it.
For example:
My text: I am from Moscow. My nickname is itruf.
Result:
First label: I am from Moscow.
Second label: My nickname is
Third label: itruf.
All UILabel must have one size and font (I want to make paging, like bookmate or ibooks).
PS: I want to make NSArray with my labels.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
其中 myCity 和 myName 是您的标签。
Where myCity and myName is your labels.
或者如果你想调整标签高度,
那么它会自动从 1000 下降到合理的高度。
Or if you want to adjust your label height,
Then it'll automatically come down from 1000 to the reasonable height.