我目前正在为iPhone应用程序设置OpenFeint。默认情况下,加载的第一个选项卡是“Friends”(选项卡视图列表中的第三个选项卡),但我想自定义此选项以加载应用程序的主选项卡(列表中的第一个选项卡)。
任何人都知道如何做到这一点?任何帮助将非常感激。
答案 0 :(得分:0)
在完成所有启动逻辑之后,我终于在OpenFeint + Private.mm中找到了这个函数:
+ (void)presentRootControllerWithTabbedDashboard
{
UITabBarController* tabController = (UITabBarController*)OFControllerLoader::load(@"TabbedDashboard");
if (![OpenFeint lastLoggedInUserHadFriendsOnBootup])
{
tabController.selectedIndex = 2;
}
[OpenFeint presentRootControllerWithModal:tabController];
}
正如预期的那样,将.selectedIndex更改为0非常有效。