开发者

how to customize a UITableViewCell? to the core of it

just like in other normal programming languages... we can for example override the OnPaint() of the control... can we do the same in xcode/cocoa touch/objective-c puzzle?

With no disrespect for the people who like it of course, and see that it's a li开发者_运维问答mitless framework.


UITableViewCell is a UIView subclass so you can override any UIView methods - including drawRect: method to perform whatever custom drawing you want to do...


there a few ways of customizing UITabelViewCells. Subclassing is just one.

Table View Programming Guide for iOS
Interessting Chapters:

  • Programmatically Adding Subviews to a Cell’s Content View
  • Loading Custom Table-View Cells From Nib Files
  • Subclassing UITableViewCell
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜