I've done this without issue. I use this to work out if the screen is tall:
public static bool IsTall
{
get
{
return UIDevice.CurrentDevice.UserInterfaceIdiom
== UIUserInterfaceIdiom.Phone
&& UIScreen.MainScreen.Bounds.Height
* UIScreen.MainScreen.Scale >= 1136;
}
}
(as stolen from Clancey)
I have [email protected] in my root folder (note, this is DIFFERENT
to the name you are using)
And thats it.Maybe it's the name you are using -
> But MonoTouch refuses
> my [email protected] as iPhone Launch Image.
Rename it [email protected]
:)
N
On Sat, Nov 10, 2012 at 1:41 PM, Guido Van Hoecke <[email protected]> wrote:
> Hi,
>
> How does one create an app that adapts to iPhone 3GS, iPhone 4 as well
> as iPhone 5 screen sizes?
>
> I don't use any hardcoded dimensions in my code, always obtain them via
> UIScreen.MainSccreen.Bounds, and the app does not use nibs, all UI
> elements are code generated, but the app does not adapt to the taller
> iPhone 5 size.
>
> I read some postings that you just have to provide an iPhone 5 launch
> image to tell iOS that the app supports iPhone 5. But MonoTouch refuses
> my [email protected] as iPhone Launch Image.
>
> I failed to find some good advice about how to proceed to have an app
> that does adapt to all iPhone sizes and use the full height of the
> iPhone 5 screen. I have the impression that MD should allow for an
> iPhone 5 launch image next to the Default and Retina Display launch
> images.
>
> Please advise,
>
>
> Guido
>
> --
> He thought of Musashi, the Sword Saint, standing in his garden more than
> three hundred years ago. "What is the 'Body of a rock'?" he was asked.
> In answer, Musashi summoned a pupil of his and bid him kill himself by
> slashing his abdomen with a knife. Just as the pupil was about to comply,
> the Master stayed his hand, saying, "That is the 'Body of a rock'."
> -- Eric Van Lustbader
>
> http://vanhoecke.org ... and go2 places!
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
--
Nic Wise
t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/
mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch