msaspence
msaspence

Reputation: 1424

OK to use controller as delegate and data datasource for uitableview in iOS

Is it ok to use your view controller as your uiview's delegate, it seems to make sense to be as they are similar in nature.

More specifically is it OK to use your uitableviewcontroller as your uitableview's delegate and data source?

Upvotes: 0

Views: 125

Answers (1)

kennytm
kennytm

Reputation: 523474

Yes.

And UITableViewController already is the .delegate and .dataSource of its UITableView by default.

Upvotes: 3

Related Questions