I am having trouble because I cannot see the cells in the SwiftTutorial Create Table View.

Asked 2 years ago, Updated 2 years ago, 44 views

Questions

I want the cells to appear in SwiftTutorial's Create Table View.

URL

https://developer.apple.com/library/prerelease/ios/referencelibrary/GettingStarted/DevelopiOSAppsSwift/Lesson7.html#//apple_ref/doc/uid/TP40015214-CH8-SW1

Regarding the sample project, is Github okay?

https://github.com/tommottom/FoodTracker

What I've done now.

·Generate the MealTableViewCell.swift file
·Located the TableViewController on the Main.Stroyboard.
·Set MealTableViewCell to ReuseIdentifier of TableViewCell
"·Select ""MealTableViewCell"" from the TableViewCell Class."
·Stroyboard EnrtyPoint specifies TableViewController

Results

A blank page appears.

Solution 1

I thought I should generate the TableViewController.swift file and write how many sections and how many TableViews there are, but it doesn't show up.

swift

2022-09-30 21:10

1 Answers

Add a UITableViewController to view cells in the last Load Initial Data

So until then, the necessary code has not been written, so it will always be white.
That's why I think it's a reference image.(It's hard to understand)
It's hard for beginners.


2022-09-30 21:10

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.