How do I make more than two text labels per cell? #24
-
|
I can only configure two text labels per cell, when I have 3 variables so I'm not sure what to do. Please teach me how to add more labels per cell or a work around. |
Beta Was this translation helpful? Give feedback.
Answered by
granwyntan
Aug 8, 2021
Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Great that you would like to extend your learning.
You're good to go. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
granwyntan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment








Great that you would like to extend your learning.
- 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 themYou're good to go.