Biscuit128
Biscuit128

Reputation: 5398

Tableview empty on simulator

I am trying to create a table view to replicate a login function. I have designed the table view and put some default values in the other tabs views.

When I run on the simulator my table view appears empty - but I don't really know or understand why.

enter image description here

enter image description here

Upvotes: 0

Views: 113

Answers (1)

Ben
Ben

Reputation: 3485

You have to delete the DataSource in the Interface Builder. Just select the tableView in there and go to the Connections Inspector (last icon on the right side). There on the top is the DataSource, just click the cross to delete it.

Some Image to demonstrate the process

The Cells have to be static for this (with tableView selected):

Attributes Inspector with tableView selected

"The difference is with static you dont need to code things because it will be the same, thats what you should have picked since its a login page no need for prototype" - meda

Upvotes: 1

Related Questions