【问题标题】:Set the width and height for a TTLauncherItem设置 TTLauncherItem 的宽度和高度
【发布时间】:2010-06-06 14:29:24
【问题描述】:

我有这个:

_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 像素。

谢谢

【问题讨论】:

    标签: iphone cocoa-touch three20 dimensions ttlauncheritem


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 2013-10-22
      • 1970-01-01
      • 1970-01-01
      • 2017-04-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-01
      • 2014-06-21
      相关资源
      最近更新 更多