gpt4 book ai didi

xamarin.ios - Monotouch : 5. CheckVersion 中的 1.0 Beta API 更改

转载 作者:行者123 更新时间:2023-12-04 03:08:39 25 4
gpt4 key购买 nike

在 MonoTouch 的 Beta 5.1 中,检查版本的 API 已更改,它返回 int现在。

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

我找不到 int意思是。之前是 bool .

最佳答案

这是一个错误,它在 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 }

关于xamarin.ios - Monotouch : 5. CheckVersion 中的 1.0 Beta API 更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8347392/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com