UI标签问题

发布于 2024-09-13 10:56:51 字数 245 浏览 6 评论 0原文

是否可以仅使用 UILabel + UIView 在 iOS 上实现类似的效果?

我尝试过使用 UIWebView,但在 UITableView 中使用它太慢了。

使用 UILabel 的样式? http://cl.ly/f9d4f776171e1cb6faaf/content

Is this possible to achieve something like that on iOS simply using UILabel + UIView ?

I've tried using a UIWebView but it's too slow to be used in a UITableView.

That style using UILabel ? http://cl.ly/f9d4f776171e1cb6faaf/content

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

像极了他 2024-09-20 10:56:51

像这样

lbl.backgroundColor = [UIColor redColor];
lbl.textColor = [UIColor whiteColor];

假设 lbl 是一个 UILabel 对象。

Something like this

lbl.backgroundColor = [UIColor redColor];
lbl.textColor = [UIColor whiteColor];

Assuming lbl is a UILabel object.

恰似旧人归 2024-09-20 10:56:51
lbl.font = [UIFont boldSystemFontOfSize:20];
lbl.font = [UIFont boldSystemFontOfSize:20];
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文