设置 TTLauncherItem 的宽度和高度

发布于 2024-09-04 09:34:38 字数 802 浏览 2 评论 0原文

我有这个:

_launcherView.pages = [NSArray arrayWithObjects:
                       [NSArray arrayWithObjects:
                        [[[TTLauncherItem alloc] initWithTitle:@"New Note"
                                                         image:@"bundle://Icon.png"
                                                           URL:@"http://www.google.com/" canDelete:NO] autorelease],
                        [[[TTLauncherItem alloc] initWithTitle:@"To Do Items"
                                                         image:@"bundle://Icon.png"
                                                           URL:@"http://www.yahoo.com/" canDelete:NO] autorelease],
                        nil],
                       nil];

如何设置项目的宽度和高度?我希望所有项目均为 64x64 像素。

谢谢

I have this:

_launcherView.pages = [NSArray arrayWithObjects:
                       [NSArray arrayWithObjects:
                        [[[TTLauncherItem alloc] initWithTitle:@"New Note"
                                                         image:@"bundle://Icon.png"
                                                           URL:@"http://www.google.com/" canDelete:NO] autorelease],
                        [[[TTLauncherItem alloc] initWithTitle:@"To Do Items"
                                                         image:@"bundle://Icon.png"
                                                           URL:@"http://www.yahoo.com/" canDelete:NO] autorelease],
                        nil],
                       nil];

How can I set the width and height for the items? I want all items to be 64x64 pixels.

Thanks

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

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

发布评论

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

评论(1

爱,才寂寞 2024-09-11 09:34:38

通过使用注册的样式表,您可以完全控制该项目。只需注册您自己的默认样式表,然后覆盖 TTDefaultStylesheet 方法:

- (TTStyle*)launcherButton:(UIControlState)state;

You have full control over the item by using registered stylesheets. Simply register your own default stylesheet, then override the TTDefaultStylesheet method:

- (TTStyle*)launcherButton:(UIControlState)state;
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文