Sauron
Sauron

Reputation: 6657

New files are always empty when creating a new class in Xcode

When creating cocoa touch classes, the new file is always empty:

import Cocoa

class UpcomingEvents: UITableViewController {

}

How can I set up Xcode to allow for everything to populate with the tableView override functions automatically upon creation of file?

Upvotes: 5

Views: 502

Answers (1)

Muzahid
Muzahid

Reputation: 5186

You code shows that you created Cocoa classes not Cocoa Touch. When creating file choose enter image description hereiOS and then select Cocoa Touch Classes and create file sub class of UITableViewController. Then you will get as you expected.

Upvotes: 7

Related Questions