【发布时间】:2014-12-27 17:38:35
【问题描述】:
将我的 iOS 项目迁移到 x64 后,我遇到了很多错误,我修复了所有错误,只是无法修复以下错误,我在 Xamarin 和 Apple 开发者网站上搜索了很多,但没有解决。
Error CS1061: Type `SystemConfiguration.NetworkReachability' does not contain a definition for `SetCallback' and no extension method `SetCallback' of type `SystemConfiguration.NetworkReachability' could be found. Are you missing an assembly reference? (CS1061)
我还导入了以下参考:
using System;
using System.Net;
using Foundation;
using UIKit;
using SystemConfiguration;
using CoreFoundation;
using CoreServices;
代码是:
NetworkReachability reachability = new NetworkReachability (new IPAddress (new byte [] {169,254,0,0}));
reachability.SetCallback (OnChange); // <-- seems that this method removed from the class But what I should use instead of it ?
请与我分享您的建议。
【问题讨论】:
标签: ios xamarin.ios xamarin