在过去(Objective-C)我可以像这样使用 browsedDeviceTypeMask 属性:
mDeviceBrowser.browsedDeviceTypeMask = ICDeviceLocationTypeMaskLocal|ICDeviceLocationTypeMaskRemote|ICDeviceTypeMaskScanner
我将其转换为:
mDeviceBrowser.browsedDeviceTypeMask = ICDeviceLocationTypeMask.Local | ICDeviceLocationTypeMask.Shared | ICDeviceLocationTypeMask.Bluetooth | ICDeviceLocationTypeMask.Bonjour
但我收到错误消息:
Binary Operator '|' cannot be applied to tow 'ICDeviceLocationTypeMask' operands
有什么帮助解决这个问题吗?