I have created a simple static table view in my main storyboard but every time I hook up a blank UITableViewController the static view is not loading.
Remove the default implementations of numberOfSectionsInTableView()
and tableView(numberOfRowsInSection:)
from your UITableViewController subclass.
i.e. remove those methods because they return 0:
func numberOfSectionsInTableView(tableView: UITableView) -> Int {
return 0
}
func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return 0
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With