如何更改 TTLauncherItem 的文本标签框架/位置

发布于 2024-10-05 14:16:30 字数 201 浏览 1 评论 0原文

我需要一个自定义 TTLauncherItem 在图像上显示文本。 有办法让它发挥作用吗?

默认看起来像:

+----+
|    |
+----+
 text

我希望它像这样:

+----+
|text|
+----+

感谢您的帮助!

I need a custom TTLauncherItem displaying the text on to of the image.
Is there a way to get this working?

Default looks like:

+----+
|    |
+----+
 text

And I want it to be like this:

+----+
|text|
+----+

Thanks for your help!

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

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

发布评论

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

评论(1

疑心病 2024-10-12 14:16:31

您可以在 TTLauncherItem init 函数中修改图像参数。

[[[TTLauncherItem alloc] initWithTitle:@":)"
      image:nil
      URL:@"tt://tabBarTest" canDelete:NO] autorelease]

you can modify the image parameter in the TTLauncherItem init function.

[[[TTLauncherItem alloc] initWithTitle:@":)"
      image:nil
      URL:@"tt://tabBarTest" canDelete:NO] autorelease]
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文