首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >自定义TTLauncherView按钮大小

自定义TTLauncherView按钮大小
EN

Stack Overflow用户
提问于 2011-07-23 22:06:08
回答 1查看 449关注 0票数 1

我试图在TTLauncherView中更改TTLauncherViewButton项的默认大小,但是,我似乎找不到在TTLauncherView中负责按钮大小的变量或源代码。

有谁有建议吗?我正在尝试在iPad版本中有更大的按钮。

我在默认样式表中找到的唯一类似于大小的东西:

代码语言:javascript
复制
///////////////////////////////////////////////////////////////////////////////////////////////////
- (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;
}
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-07-23 22:13:28

我不确定这一点,但我找到了另一种选择-它同时支持iphone / ipad。

试试这个,

https://github.com/rigoneri/myLauncher

提供与TTLauncherView相同的功能。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/6800905

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档