当我向 TTLauncherView Three20 视图添加一些图标(50 个)时,TTLauncherView 始终位于图标页面的最后一页。如何将其更改为始终显示图标的第一页而不是最后一页?谢谢。
更新
在 viewDidLoad 方法中,我称之为:
- (void)loadIcons
{
int first=0;
TTLauncherItem *firstIcon;
for (NSString *nombre in nombres) {
TTLauncherItem *icono=[self generarIcono:nombre];
[launcherView addItem:icono animated:YES];
if(first==0)
firstIcon=icono;
first=1;
}
[self.view addSubview:launcherView];
if (firstIcon!=nil) {
[launcherView scrollToItem:firstIcon animated:NO];
}
}