4

In Beta 5.1 of MonoTouch the API to check version changed, it is returning an int now.

UIDevice.CurrentDevice.CheckSystemVersion(5,0,0);

I can't find out what the int mean though. Before it was a bool.

poupou
  • 43,413
  • 6
  • 77
  • 174
Ian Vink
  • 66,960
  • 104
  • 341
  • 555

1 Answers1

2

It was a mistake and it's noted in the 5.1 release notes:

This is a temporary regression in the Beta, it will be reverted back to the 5.0 signature on the next release.

The idea behind the int version was to enable code to do things like:

if (CheckSystemVersion (5, 0, 1) >= 0) { // set backup bit }
poupou
  • 43,413
  • 6
  • 77
  • 174
  • How do I revert to MonoTouch 5.0? – Ian Vink Dec 01 '11 at 20:54
  • Remove (or better/safer rename) your `/Developer/MonoTouch/` directory and re-install MonoTouch 5.0. If you need to download it again then go the the support portal (http://support.xamarin.com/) and look for "Product Download and Activation Self Service" – poupou Dec 01 '11 at 21:00