NSStringFromSelector(_cmd); // Objective-C
print(__FUNCTION__) // Swift 2
print(#function) // Swift 3
__FILE__
, __LINE__
, __COLUMN__
and __FUNCTION__ => #file
, #line
, #column
and #function
时间: 2024-11-10 20:18:50
NSStringFromSelector(_cmd); // Objective-C
print(__FUNCTION__) // Swift 2
print(#function) // Swift 3
__FILE__
, __LINE__
, __COLUMN__
and __FUNCTION__ => #file
, #line
, #column
and #function