Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
NSString * CTSIMSupportGetSIMStatus(); int CTGetSignalStrength();
在 swift 中使用桥接头在 xcode 7.3 上给出编译错误,它在以前的版本上运行良好。
定义你自己的objective-c方法,比如
+ (int)getSignalStrength { return CTGetSignalStrength(); }
并在那里调用 c 风格的方法,就像在 xcode7.3 中,objective-c 类中的 c 风格方法没有调用一样。