UITableView-------Table View-inherit Uiscrollview and comply with nscoding protocol
Property
Frame-------------Setting the position and size of the control
BackgroundColor--------Setting the color of a control
Style--------Get the styles of a table view
DataSource---------Setting up a proxy for Uitableviewdatasource
Delegate---------setting up Uitableviewdelegate Agent
Sectionheaderheight------Set the head label height of the Group table view
Sectionfooterheight--------Setting the height of the footer label for a level table view
Backgroundview----------Set the background view to write only
Editing----------Whether edit is allowed, default is no
Allowsselection----------The row can be selected under non-edit, the default is Yes
Allowsselectionduringediting----------Controls whether a row can be edited, the default is no
Allowsmultipleselection--------can select multiple rows, default to No
Allowsmutableselectionduringediting----------can edit if multiple rows are selected, default to No
Sectionindexminimumdisplayrowcount-------------Show a group index list on the right when the number of rows reaches this value, the default is the maximum value of Nsinteger
Sectionindexcolor------------Select a section of a row to change the color of text on this line
Sectionindextrackingbackgroundcolor--------Set the background color of a selected section
Separatorstyle----------Setting the style of a cell separator line
Separatorcolor---------Set the color of the selected cell divider
Tableheaderview---------Set Header label view for group tables
Tablefooterview----------Set the tail label view of the Group table
UITableView Category Properties
Section--------gets which group is currently within
Row------------Gets the number of rows in the current cell
Method:
Initialization method:
initWithFrame:-----------Setting the size and position of the table
Initwithframe:style---------Set the size, position and style of the table (group, single)
Setediting:----------form into edit state, no animation
setediting:animated:---------form into edit state, animated
Reloaddata---------------Refresh the entire table view
Reloadsectionindextitles--------Refresh the index bar
Numberofsections-----------Get all the current groups
Numberofrowsinsection:---------Get how many rows a group has
Rectforsection:----------Get the location and size of a group
Rectforheaderinsection:---------Gets the position and size of the header label for a group
Rectforfooterinsection:-----------Get the position and size of the tail label for a group
Rectforrowatindex:-----------Get the position and size of a row
Indexpathforrowatpoint-------------Click on a point to determine what line of information it is on.
Indexpathforcell:------------Get information about a cell
Indexpathsforrowsinrect:---------returns multiple cell information in an area
Cellforrowatindexpath:-------------get cells by cell path
Visiblecells-----------return all visible cells
Indexpathsforvisiblerows--------Returns the path of all visible rows
Headerviewforsection:--------Set the view of the header label
footerviewforsection;----------set up a view of the tail label
Beginupdates--------Add or remove only to update the number of rows
Endupdates---------added or removed will not be updated until the Add or Remove method is called
Insertsections:withrowanimation:-----------Insert one or more groups and use the animation
Insertrowsindexpaths:withrowanimation:-------Insert one or more cells and use the animation
Deletesections:withrowanimation:--------Delete one or more groups and use animations
Deleterowindexpaths:withrowanimation:--------Delete one or more cells and use the animation
Reloadsections:withrowanimation:---------Update one or more groups and use animations
Reloadrowindexpaths:withrowanimation:-------------Update one or more cells and use the animation
Movesection:tosection:-------------move a group to a target group location
Moverowatindexpath:toindexpath:-----------move a cell to the target cell location
Indexpathsforselectedrow----------Returns the path of a selected cell
Indexpathsforselectedrows---------Returns the path of all selected cells
SelectRowAtIndexPath:animation:scrollPosition---------setting to select cells within a range
Deselectrowatindexpath:animation:----------Unselected cells
Reuse mechanism
Dequeuereusablecellwithidentifier:---------get cells in the reuse queue
Uitableviewdatasource Proxy Method:
Method:
Numberofsectionsintableview:------------Set the number of groups in a table
Tableview:numberofrowinsection:----------Set how many rows each group has
Tableview:cellforrowatindexpath:---------Set the contents of the cell display
Tableview:titleforheaderinsection:---------Set Header label view for group tables
Tableview:titleforfooterinsection:-----------Set the tail label view of the Group table
Tableview:caneditrowatindexpath:---------Set whether cells can be edited
Tableview:canmoverowatindexpath:--------Set whether cells can be moved
TableView:sectionIndexTitleForTableView:atIndex:-------Set Header label text for a table of a specified group
TableView:commitEditingStyle:forRowAtIndexPath:----------Edit cell (add, delete)
TableView:moveRowAtIndexPath:toIndexPath-------Cell Movement
Uitableviewdelegate Proxy Method:
TableView:willDisplayCell:forRowAtIndexPath:-----------Set the current cell
Tableview:heightforrowatindexpath:-----------Set the height of each row
Tableview:tableview heightforheaderinsection:-----------Set the header label height of the group table
Tableview:tableview heightforfooterinsection:-------------set the tail label height of the group table
Tableview:viewforheaderinsection:----------The header label view of a custom group table
Tableview:viewforfooterinsection:----------The end label view of a custom group table
Tableview:accessorybuttontappedforrowwithindexpath:-----------To set the response method for the right-pointing button on a cell
Tableview:willselectrowatindexpath:-----------Get the path to the cell you want to select
Tableview:didselectrowatindexpath:-----------Gets the response event for the selected cell
Tableview:tableview Willdeselectrowatindexpath:------------Get the path of the cell that will not be selected
Tableview:diddeselectrowatindexpath:-----------Get unselected cell response events
The execution sequence is as follows:
First round:
1, Numberofsectionsintableview: If section=2, this function is only executed once, if section=0, the following functions do not execute, the default is 1
2, Heightforheaderinsection, executes two times, this function executes the number of sections
3, heightforfooterinsection, function attributes ibid., execute twice
4, Numberofrowsinsection, this method executes once
5, Heightforheaderinsection, this method executes two times, I'm actually a little confused why this method is called here
6, Heightforfooterinsection, this method executes two times,
7, Numberofrowsinsection, execute once
8, Heightforrowatindexpath, line High, first execute section=0, corresponding row number
Second round:
1, Numberofsectionsintableview, once
2, Heightforheaderinsection, section count
3, Heightforfooterinsection, section count
4, Numberofrowsinsection, once
5, Heightforheaderinsection, perform section count
6, Heightforfooterinsection, perform section count
7, Numberofrowsinsection, execute once
8, Heightforrowatindexpath, line high, first execute once
9, Cellforrowatindexpath
10, Willdisplaycell
Then 8, 9, and 10 are executed sequentially until all cells are painted.
UITableView all the properties, methods, and the execution order of the proxy method, after watching there must be a harvest--Dong Xin