当前位置: 代码迷 >> 综合 >> Swift 中调用OC枚举
  详细解决方案

Swift 中调用OC枚举

热度:14   发布时间:2023-12-08 20:45:46.0

OC中

typedef NS_ENUM (NSUInteger, EVDeviceType) {
    EVDeviceAudioCapture = 0,EVDeviceAudioPlayback = 1,EVDeviceVideoCapture = 2
};

Swift

EVDeviceType.audioCapture