Swift中的#pragma mark? - #pragma mark in Swift?

問題:

In Objective C, I can use #pragma mark to mark sections of my code in the symbol navigator. 在Objective C中,我可使用#pragma mark在符號導航器中標記個人代碼部分。 Since this is a C preprocessor command, it's not available in Swift. 因爲這是一個C預處理器命令,所以在Swift中不可用。 Is there a stand-in for this in Swift, or do I have to use ugly comments? 在Swift中是否有替代,或者我是否必須使用醜陋的評論? this


解決方案:

參考一: https://stackoom.com/question/1cm04/Swift中的-pragma-mark
參考二: https://oldbug.net/q/1cm04/pragma-mark-in-Swift
相關文章
相關標籤/搜索