设置 TTLauncherItem 的宽度和高度
我有这个:
_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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过使用注册的样式表,您可以完全控制该项目。只需注册您自己的默认样式表,然后覆盖
TTDefaultStylesheet
方法:You have full control over the item by using registered stylesheets. Simply register your own default stylesheet, then override the
TTDefaultStylesheet
method: