我有一个typedef如下:
typedef NSString VMVideoCategoryType;
extern VMVideoCategoryType *const VMVideoCategoryType_MusicVideo;
extern VMVideoCategoryType *const VMVideoCategoryType_Audio;
extern VMVideoCategoryType *const VMVideoCategoryType_Performance;
extern VMVideoCategoryType *const VMVideoCategoryType_Lyric;
extern VMVideoCategoryType *const VMVideoCategoryType_Show;
Run Code Online (Sandbox Code Playgroud)
我已将此文件包含在桥接头中.但是,当我尝试访问VMVideoCategoryTypeSwift文件时,我收到一个错误:
Use of undeclared type 'VMVideoCategoryType'
有没有办法让这项工作或我必须在Swift中完全重新定义这种类型?