Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Monotouch: Universal app?

Tags:

xamarin.ios

Does Monotouch support the iPhone/iPad "universal app"? If so, where can I find the docs on how to do it?

like image 308
SpokaneDude Avatar asked Dec 02 '25 18:12

SpokaneDude


1 Answers

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.

like image 101
Lorenzo B Avatar answered Dec 06 '25 20:12

Lorenzo B



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!