Eli*_*bel 4 xcode swift swift3 xcode8 swift3.1
使用clang*我能做到
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
// ...
#pragma clang diagnostic pop
Run Code Online (Sandbox Code Playgroud)
然而,这在swift中不起作用.
那么如何在Swift中抑制警告呢?