通用应用程序问题

发布于 2024-12-01 03:22:39 字数 812 浏览 5 评论 0原文

大家.. 我创建了一个通用应用程序.. 我的应用程序运行良好,只有两个视图。 在 iPhone 应用程序中,MainView 工作正常 ->第一视图 ->第二视图->第三视角.. 但在 iPad 中仅适用于 MainView ->第一个视图..在它无法调用SeconfView之后..

我也调用了这个视图,但没有调用..

if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
{
    languageObj = [[LanguageSelection alloc] initWithNibName:@"Language_iPhone" bundle:[NSBundle mainBundle]];
    [self.navigationController pushViewController:languageObj animated:NO];
}
else if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
{
    languageObj = [[LanguageSelection alloc] initWithNibName:@"LanguageView_iPad" bundle:[NSBundle mainBundle]];
    [self.navigationController pushViewController:languageObj animated:NO];
}

笔尖名称也很完美..视图出口也在nib文件中设置..但是LanguageView仅在iPad中不被调用..

请让我知道,我做错了什么吗? 谢谢..

Everybody..
I have create one universal application..
My app worked fine to only two view..
In iphone app worked fine to MainView -> First View -> SecondView -> ThirdView..
But in iPad only works to MainView -> First View .. After it can not call to SeconfView..

I have call also this view but not called..

if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
{
    languageObj = [[LanguageSelection alloc] initWithNibName:@"Language_iPhone" bundle:[NSBundle mainBundle]];
    [self.navigationController pushViewController:languageObj animated:NO];
}
else if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
{
    languageObj = [[LanguageSelection alloc] initWithNibName:@"LanguageView_iPad" bundle:[NSBundle mainBundle]];
    [self.navigationController pushViewController:languageObj animated:NO];
}

Nib name also perfect.. View outlet also set in nib file.. But LanguageView not called in iPad only..

Please let me know, is there any wrong thing which i had done..
Thanks..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

维持三分热 2024-12-08 03:22:39

现在这解决了..
我只需在 didFinishLaunchingWithOptions 方法中添加一行。

UINavigationController *navCont = [[UINavigationController alloc] initWithRootViewController:menuView];

感谢谁努力解决我的问题。谢谢。

Now this solved..
I need to add only one line in didFinishLaunchingWithOptions method..

UINavigationController *navCont = [[UINavigationController alloc] initWithRootViewController:menuView];

Thanks for who do their effort to solve my question.. Thanks..

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文