Xcode doesn't automatically create viewDidLoad method

90 views Asked by At

When I create a subclass of UIViewController, Xcode doesn't automatically create viewDidLoad method and didReceiveMemoryWarning method. Why did this happen? What should I do to make it work normal?

1

There are 1 answers

0
Nicolas Miari On

Make sure you are choosing "Cocoa Touch Class" (from the iOS section of templates) and not "Cocoa Class" (from the macOS / OSX section of templates) when creating the new file.