Welcome, Guest
Username Password: Remember me

Simple Default TableViewCell with Sensible TableView?
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Simple Default TableViewCell with Sensible TableView?

Simple Default TableViewCell with Sensible TableView? 1 year, 7 months ago #1

Maybe I'm overlooking something but I've looked through the documentation on how to create just a simple TableViewCell with just one label all the way across like the default UITableViewCell if you don't change it.

I don't see one of these in the documentation though. I see SCLabelCell, but that has a title on the left and then the editable Label on the right. I need the same thing but for the whole cell.

I'm not sure about SCTableViewCell because does it let you change the font color and size of the text in the cell? I don't see a label property.


Am I overlooking something? I feel like this should be pretty simple. I was able to implement a full settings-like tableview with textfields and date pickers in 5 minutes, but i'm struggling now on just a tableview with simple cells, haha.



Thanks in advance!
  • icebird
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0

Re: Simple Default TableViewCell with Sensible TableView? 1 year, 7 months ago #2

All you need is a simple SCTableViewCell

Since SCTableViewCell descends from UITableViewCell, you can do whatever you normally do in a UITableViewCell. For example, to change the cell's text color & font:

 
...
SCTableViewCell *cell = [SCTableViewCell cellWithText:@"my cell"];
cell.textLabel.font = myFont;
cell.textLabel.textColor = myColor;
...
 
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2404
  • Karma: 72

Re: Simple Default TableViewCell with Sensible TableView? 1 year, 7 months ago #3

Oh yeah, I completely forgot it was probably a subclassed UITableViewCell.


Thanks!
  • icebird
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
  • Page:
  • 1
Time to create page: 1.98 seconds