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;
精彩评论