简体   繁体   English

设置TTLauncherItem的宽度和高度

[英]Set the width and height for a TTLauncherItem

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. 我希望所有项目均为64x64像素。

Thanks 谢谢

You have full control over the item by using registered stylesheets. 通过使用注册的样式表,您可以完全控制该项目。 Simply register your own default stylesheet, then override the TTDefaultStylesheet method: 只需注册您自己的默认样式表,然后覆盖TTDefaultStylesheet方法:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM