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.
从文档,
Swift 编译器不包含预处理器。相反,它利用编译时属性、构建配置和语言特性来完成相同的功能。出于这个原因,预处理器指令不会在 Swift 中导入。
那么如何在 Swift 中使用这个强大的功能(#Pragma mark -)?