开发者

Monotouch: Universal app?

Does Monotouch support the iPhone/iPad "universal a开发者_StackOverflow中文版pp"? If so, where can I find the docs on how to do it?


Yes, of course! Miguel De Icaza has done a very good job with Monotouch.

Under Project settings, select IPhone Application and then specify the target for your application: IPad only, IPhone only or both.

Rembember that when you want to create an universal app, you have to provide specific sizes for each device (views, orientations,images and so on).

To check the current device and customize your app for iPad and iPhone you can use the following property and verify if it contains ipad string. You can create a global boolean variable (a static variable for example and check the if your app is running on iPhone or iPad). To test run with the right simulator: obviously iPhone or iPad simulator.

UIDevice.CurrentDevice.Model

Cheers.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜