开发者

how to customize a UITableViewCell? to the core of it

开发者 https://www.devze.com 2023-01-24 00:48 出处:网络
just like in other normal programming languages... we can for example override the OnPaint() of the control...

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

精彩评论

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