ios - set start index for static tableviewcontroller -


i have static tableviewcontroller (it had done way), want set position (index 40) when loads. unfortunately, code below works when not static. there alternative ways accomplish this?

 [self.tableview scrolltorowatindexpath:[nsindexpath indexpathwithindex:1]                           atscrollposition:uitableviewscrollpositionnone                                   animated:no]; 

well, if cells static , they're sizes same, adjust contentoffset property of table view directly set cells on screen, ex:

cgpoint offsetofcell40 = cgpointmake(0.0f, 2500.0f); [tableview setcontentoffset:offsetofcell40 animated:no]; 

Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -