简体   繁体   中英

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.

在此处输入图片说明

在此处输入图片说明

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.

一些图片来演示过程

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

选中tableView的属性检查器

"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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM