[MonoTouch] Fwd: UIDevice.CurrentDevice.CheckSystemVersion

Alex Soto dxdream at gmail.com
Mon Mar 26 15:51:56 UTC 2012


Opps my mistake :)

Thanks a lot Roy and Jeff.

Alex

On Mar 26, 2012, at 9:35 AM, Jeff Stedfast wrote:

> 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/46f11a8f/attachment.html>


More information about the MonoTouch mailing list