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
Post a Comment