Cat Share, must boutique
Material code Address: http://download.csdn.net/detail/u013357243/8572001
Original address: Http://blog.csdn.net/u013357243?viewmode=contents
Look first.
Custom cell
本次主要是自定义Cell的学习 实现自定义Cell主要有三种方法:按照使用的频繁度排序: XIB > 纯代码 > StoryBoard
Steps for defining Xib
1> New Hmtgcell.xib
2> drag a control that needs to be customized, placing other child controls
3> Create a new class
* The class name should be consistent with Xib's name
* Inherit from subclass to match the type of root node in Xib
4> you need to change the root node class name of Xib to the newly created class name before you connect
5> Connection
6> in the Properties panel of the Xib, specify the reusable identifier
To create a cell by code
1> Create custom cell, inherit from UITableViewCell
2> determine the control as required, and define the properties
3> Use getter method to complete the instantiation of the control, only create and add to Contentview, do not handle the location
4> defines a model property that, through setter methods, sets the cell's display
Special usage of the preprocessing directives # if 1
#if 0#endif
Can see the high function of the note, here will not let us see a green, but also can play the role of annotations, if you want to use this code to change 0 to 1,so easy!!
Characteristics of the proxy mode
Proxy mode features: is the parent control (view controller) that listens to the child control's events, and notifies the parent control to work when something happens to the child control!
PS: New iOS Exchange Learning Group: 304570962
You can add a cat qq:1764541256 or Znycat.
Let's study hard together.
Original: Http://blog.csdn.net/u013357243?viewmode=contents
(material source) Cat learn iOS (16) UI Xib custom cell implementation Group Purchase UI