I have a UITableView in view controller. I want to set up the view, properties etc for the table view without setting a UITableViewDelegate or UITableViewDataSource delegate.
Is it possible programmatically? (something like [tableView setNumberOfSections:2])
No it’s not possible. But maybe it’s an option for you to use a static tableview? There you don’t need a delegate, but your number of rows / sections is fixed.