开发者

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:@"htt开发者_JAVA百科p://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


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;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜