在MonoTouch的Beta 5.1中,用于检查版本的API已更改,它现在返回一个int.
UIDevice.CurrentDevice.CheckSystemVersion(5,0,0);
我无法找出int的含义.之前它是一个布尔.
最佳答案 这是一个错误,它在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.
int版本背后的想法是使代码能够执行以下操作:
if (CheckSystemVersion (5, 0, 1) >= 0) { // set backup bit }