[MonoTouch] Fwd: UIDevice.CurrentDevice.CheckSystemVersion
Jeff Stedfast
jeff at xamarin.com
Mon Mar 26 15:35:00 UTC 2012
Hi,
Yes, Roy's interpretation of how this method is supposed to work is
correct. You can think of it as a check for >= the version you pass in.
Hope that helps,
Jeff
On Sun, Mar 25, 2012 at 9:49 PM, Roy Goode <roy at roygoode.com> wrote:
> Hi Alex
>
> If you're running on an iOS 5.x device then it has the APIs for iOS 5, iOS
> 4 and iOS 3, which I think is what MonoTouch is telling you with those
> return values.
>
> If you're running on an iOS 4.x device then I'd expect
> CheckSystemVersion(5, 0) to return false - which it does for me.
>
> Roy
>
> On 25 March 2012 19:58, Alex Soto <dxdream at gmail.com> wrote:
>
>> is UIDevice.CurrentDevice.CheckSystemVersion() broken?? it always
>> returns true no matter what params I use
>>
>> Debug.WriteLine(UIDevice.CurrentDevice.CheckSystemVersion (5, 0));
>> Debug.WriteLine(UIDevice.CurrentDevice.CheckSystemVersion (4, 0));
>> Debug.WriteLine(UIDevice.CurrentDevice.CheckSystemVersion (3, 0));
>>
>> btw I'm using MonoTouch 5.3.2
>>
>> Alex
>>
>>
>> _______________________________________________
>> MonoTouch mailing list
>> MonoTouch at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/monotouch
>>
>>
>
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monotouch/attachments/20120326/d80b377d/attachment.html>
More information about the MonoTouch
mailing list