Skip to content

Get and display the class name, function name and line number in Swift

   

We can't move in here! The debugging will be quicker if you write it in a part of the
The class name and line number, retrieved can be displayed.

print("Class name : \(NSStringFromClass(type(of: self))) ")
print(#function, #line)

  1. Selecting images with UIImagePickerController
  2. Playing music with Swift
  3. Array(Ruby)
  4. Whitening the UIStatusBar
  5. UITableView and UISearchBar
  6. UserNotification(LocalNotification)
  7. Speech Recognition(SFSpeechRecognizer)