TTLauncherView でデフォルトの 3 行の代わりに 4 行を表示することは可能ですか?
1062 次
2 に答える
1
常に同じ数の行を使用する場合は、カテゴリで行の高さを変更できます。
@interface TTLauncherView(FourthRow)
@end
@implementation TTLauncherView(FourthRow)
- (CGFloat)rowHeight {
int rows = 4;
return round(_scrollView.height / rows);
}
@end
于 2011-05-01T22:34:52.217 に答える
0
私にとって、TTLauncherView のデフォルトの行数は 4 だったので、なぜ 3 つしか表示されないのかわかりません。それとも、列 (デフォルトは 3) のことですか?
どちらの方法でも、どちらの値も columnCount および rowCount プロパティを介して構成できます。
TTLauncherView launcher = [[[TTLauncherView alloc] initWithFrame:self.view.bounds] autorelease];
launcher.rowCount = 3;
launcher.columnCount = 3;
3行と3列の両方を持つものを提供する必要があります
于 2010-12-02T08:10:54.387 に答える