是否可以在TTLauncherView中显示4行而不是默认的3行?
发布于 2011-05-02 06:34:52
如果始终使用相同的行数,则可以使用类别修改行高:
@interface TTLauncherView(FourthRow)
@end
@implementation TTLauncherView(FourthRow)
- (CGFloat)rowHeight {
int rows = 4;
return round(_scrollView.height / rows);
}
@end发布于 2010-12-02 16:10:54
对我来说,TTLauncherView中的默认行数是4,所以我不知道为什么您只看到3行。或者,您是指列(默认为3)?
无论采用哪种方式,都可以通过columnCount和rowCount属性配置这两个值:
TTLauncherView launcher = [[[TTLauncherView alloc] initWithFrame:self.view.bounds] autorelease];
launcher.rowCount = 3;
launcher.columnCount = 3;应该会给出一个同时包含3行和3列的
https://stackoverflow.com/questions/4326031
复制相似问题