In Objective C you can log the method that is being called using:
NSLog(@\"%s\", __PRETTY_FUNCTION__)
Usually this is used from a logging m
I use, this is all that is required in a swift file, all other files will pick it up (as a global function). When you want to release the application just comment out the line.
import UIKit
func logFunctionName(file:NSString = __FILE__, fnc:String = __FUNCTION__){
println("\(file.lastPathComponent):\(fnc)")
}