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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -