我试图在TTLauncherView中更改TTLauncherViewButton项的默认大小,但是,我似乎找不到在TTLauncherView中负责按钮大小的变量或源代码。
有谁有建议吗?我正在尝试在iPad版本中有更大的按钮。
我在默认样式表中找到的唯一类似于大小的东西:
///////////////////////////////////////////////////////////////////////////////////////////////////
- (TTStyle*)launcherButtonImage:(UIControlState)state {
TTStyle* style =
[TTBoxStyle styleWithMargin:UIEdgeInsetsMake(-7, 0, 11, 0) next:
[TTShapeStyle styleWithShape:[TTRoundedRectangleShape shapeWithRadius:8] next:
[TTImageStyle styleWithImageURL:nil defaultImage:nil contentMode:UIViewContentModeCenter
size:CGSizeZero next:nil]]];
if (state == UIControlStateHighlighted || state == UIControlStateSelected) {
[style addStyle:
[TTBlendStyle styleWithBlend:kCGBlendModeSourceAtop next:
[TTSolidFillStyle styleWithColor:RGBACOLOR(0,0,0,0.5) next:nil]]];
}
return style;
}发布于 2011-07-23 22:13:28
我不确定这一点,但我找到了另一种选择-它同时支持iphone / ipad。
试试这个,
https://github.com/rigoneri/myLauncher
提供与TTLauncherView相同的功能。
https://stackoverflow.com/questions/6800905
复制相似问题