Swift中代码组织符号
Objective c中,一般使用pragma mark - 说明文字组织代码,在Swift中变了,如下所示
//MARK: - 说明文字
//FIXME: - 说明文字
//TODO: - 说明文字
函数注释
command + option + "/" 组合键给函数注释
查看函数注释
option + 鼠标左键 查看函数注释
Debug
Swift 有 #file, #function, #line and #column.
#file - String - The name of the file in which it appears.
#line - Int - The line number on which it appears.
#column - Int - The column number in which it begins.
#function - String - The name of the declaration in which it appears.
