开发者

Set the width and height for a TTLauncherItem

开发者 https://www.devze.com 2023-01-02 17:09 出处:网络
I have this: _launcherView.pages = [NSArray arrayWithObjects: [NSArray arrayWithObjects: [[[TTLauncherItem alloc] initWithTitle:@\"New Note\"

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

精彩评论

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