1.
First recommend a third-party library Mjrefresh/mjrefresh.h,github ranked third I believe that many people are familiar with, really good
2.
For the structure of tableview here is not too much to explain, their own header,footer, each section corresponding to the Header,footer, the original cell, custom cell, etc. should be very understanding
3. Focus:
Recent work encountered in the demand is this, need two section, but the first section inside the cell does not need to slide line, to the Internet to find n many methods, most of which is to rewrite the DrawRect method, but later I found a more
A simple way to share this:
[Cell setseparatorinset:uiedgeinsetsmake(0, 0, 0, 1000000)];
There is a reloaddata problem, this is the need to reload specify the section of the data (why this is not too much to describe here), OK, the way is:
[self. TableView reloadsections: [nsindexset indexsetwithindex:1] Withrowanimation:uitableviewrowanimationnone]; cell with reload section 1 alone
Another requirement for a variety of reasons, I customized a cell, left and right equal, inside put a bunch of pictures, Label,button and so on, then how to go
-(uitableviewcell *) TableView: (uitableview *) TableView Cellforrowatindexpath: (nsindexpath *) Indexpath
It? Haha, that's what I'm dealing with. The index to the right of the Indexpath.row * 2 index is indexpath.row * 2 + 1 So you can get the corresponding data from the array.
Then is the Click event Processing, which button is clicked? My solution is to add a tag value for each button (the tag value is best >1000, reason please Baidu), and then according to tag to get the corresponding button, and then to deal with business logic
Still working overtime ... Just write about it first ...
IOS Learning Note--0009 (about TableView)