NSStringFromSelector(_cmd); // Objective-C print(__FUNCTION__) // Swift 2 print(#function) // Swift 3
__FILE__
, __LINE__
, __COLUMN__
and __FUNCTION__ => #file
, #line
, #column
and #function
转载于:https://www.cnblogs.com/ficow/p/5798780.html