Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用three20 启动器在我的应用程序中获得主屏幕感觉。我刚刚实现了基本的启动器。我有两件事想要完成。
首先,我希望用户在启动器中添加 TTViewController 和项目的不同视图控制器中推送 UIButton 或任何内容,我该怎么做?
其次,我想知道您如何查看用户可以添加所有信息以在启动器中添加自己的项目的视图?这不像第一件事那样必要。
我真的很想知道其中的一些,并加深我对three20发射器的了解。
只需为您的视图控制器设置一种与启动器对话的方式,通过委托、通知或任何您想要的方式,然后添加如下项目:
TTLauncherItem *item = [[TTLauncherItem alloc] initWithTitle:@"title" image:@"http://imageURL" URL:@"http://URL" canDelete:YES]; [_launcherView addItem:item animated:YES]; [item release];