ios - How to keep always first cell of tableview on top of its tableview during scroll tableview -
i want keep first cell on top of tableview when scroll.
any appreciable.thanks in advance...
here how create header view uitableview
- (uiview *)tableview:(uitableview *)tableview viewforheaderinsection:(nsinteger) section { uiview *sectionheaderview = [[uiview alloc] initwithframe: cgrectmake(0, 0,tableview.frame.size.width, 40.0)]; // customize per design return sectionheaderview; }
now return height of
- (cgfloat)tableview:(uitableview *)tableview heightforrowatindexpath:(nsindexpath *)indexpath { //return desirable height return 40; }
hope helps you.
Comments
Post a Comment