[英]Error while running iphone app in ipad
I am converting an iPhone App in to the iPad App, 我正在将iPhone App转换为iPad App,
for that I have changed the buttons size by "Austosizing" feature in Inspecture and it resized the buttons and it looks fine in the iPad simulator 为此,我通过Inspecture中的“ Austosizing”功能更改了按钮的大小,并调整了按钮的大小,并且在iPad模拟器中看起来还不错
All the functionalities were working perfectly in the in the iPhone simulator iPhone模拟器中的所有功能均正常运行
The problem is that when I click buttons in the iPad simulator then only certain buttons are working, the others button look as if they are disabled but as such they are not 问题是,当我单击iPad模拟器中的按钮时,只有某些按钮可以正常工作,其他按钮看上去好像已被禁用,因此它们却无法正常工作。
The screen resizes to the iPad resolution but screen seems to work only till iphone view dimensions 屏幕尺寸调整为iPad分辨率,但屏幕似乎只能在iPhone观看尺寸之前工作
What could be wrong? 有什么事吗
what should be done? 应该做什么?
Please Help and Suggest 请帮助和建议
Thanks 谢谢
Hi if you want to run your iPhone application in iPad then you must have to create iPad nib's and saved them with " nibname-iPad " and also you have to change the .plist file in Other Resource folder with adding option NSMainNibFile~ipad as key and MainWindow-iPad as its value 您好,如果您想在iPad上运行iPhone应用程序,则必须创建iPad笔尖并将其保存为“ nibname-iPad ”,还必须在Other Resource文件夹中更改.plist文件,并添加选项NSMainNibFile〜ipad作为键和MainWindow-iPad作为其价值
And also remember that wherever you use iPhone nib you must have to change it with iPad nib name. 还要记住,无论在哪里使用iPhone笔尖,都必须使用iPad笔尖名称进行更改。
You have another choice of doing this : 您还有另一种选择:
This will make your application work like Universal Application. 这将使您的应用程序像通用应用程序一样工作。
Cheers 干杯
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.