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

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -