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
.
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 }