Skip to content

How do I make more than two text labels per cell? #24

Answered by granwyntan
sendhelpp asked this question in Q&A - iOS
Discussion options

You must be logged in to vote

Great that you would like to extend your learning.

  1. Ensure you have more properties within your struct which you could display within your TableViewController.

2. Select Custom instead of Subtitle for your cell type, in attributes inspector

3. Command+N and Create a UITableViewCell file

4. Change the TableViewCell class via identity inspector

5. Double click on the cell and open TableViewCell.swift in the assistant editor

6. Add labels in and connect them via outlets

7. Set as custom cell and change the text for labels in the cellForRowAt function

8. You might have to change the alerts, and other stuff, they'll prompt u with errors and u can fix them
You're good to go.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@sendhelpp
Comment options

Answer selected by granwyntan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants