通用应用程序问题
大家.. 我创建了一个通用应用程序.. 我的应用程序运行良好,只有两个视图。 在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
现在这解决了..
我只需在 didFinishLaunchingWithOptions 方法中添加一行。
感谢谁努力解决我的问题。谢谢。
Now this solved..
I need to add only one line in didFinishLaunchingWithOptions method..
Thanks for who do their effort to solve my question.. Thanks..