I am trying to create a UITableViewCell with multiple labels. I have been trying to do something similar (have “Name” and “Phone Number” left aligned and on two lines, then have “Age” right aligned in the cell and possibly vertically centered. I have tried the different UITableViewCellStyle styles but wanted to customize it so that the cell can contain 3 labels instead of just two. Any help would be greatly appreciated. Thanks in advance!
Share
One thing you can do is make a custom UITableViewCell in interface builder and add whatever labels etc you want to it and use that cell when you are populating your rows instead.
in your .h file you would need an IBOutlet UITableViewCell yourCellName
in your .m file
you can configure your custom cell in a method like the following:
then in this method you can populate your table with the custom cell(s)
Sorry for the rough example, hope it at least helps you get started.