uilabel 中的 nsarray
我想在运行时根据可变数组添加 uilabels。 实际上我在 nsmutablearray 中有一些标签文本。我想在运行时创建标签并在标签中填充文本。请建议任何示例或提供指导
I want to add uilabels according to mutable array at run time.
actually i have some labels texts in nsmutablearray.and i want to create label at run time and fill the text in label.plz suggest any example or provide guidance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果你有一个 NSString 数组并且你想为每个文本创建一个 UILabel,你可以这样做:
If you have an array of NSStrings and you want to create a UILabel for each text you can do: