Nick th
Nick th

Reputation: 19

Prototype cells in xcode don't show after I run the app in simulator

I am a newbie in xcode developing. I try to create a table view with prototype cells. After I create the table view and add details in the cells , when I run the app in the simulator the information on the cells don't appear. Why? Please explain me in detail. Is there a step by step tutorial that can fix my problem?

Upvotes: 1

Views: 6911

Answers (3)

JCutting8
JCutting8

Reputation: 774

I know its late, but anyone in 2017 still ripping their hair out trying to solve this problem, make sure you are using the correct "identifier" field in the Interface builder to provide your reusable identifier. Interface builder has an "accessibility identifier" and a "reusable identifier" both conveniently labelled in the interface builder as "identifier" which can easily be confused.

See screenshot XCode Screenshot

Upvotes: 2

bereket
bereket

Reputation: 11

you probably forget to put Cell id: Make sure you have used similar Cell ID for your prototype cell in "Show Attribute inspector" and in your implementation in method "(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath"

Upvotes: 1

Jay Haase
Jay Haase

Reputation: 1989

I think this post will answer your question. In short, you probably need to use a Table View Controller instead of a View Controller.

You may also need to switch the Table View's content from Dynamic Prototypes to Static Cells.

Upvotes: 2

Related Questions