objective c - (iOS 7) cellForRowAtIndexPath not get called, but heightForRowAtIndexPath get called -


i tried optimize uitableview, should display end of list on startup. after storing database calls [tableview reloaddata] out of background thread , afterwards on main thread [tableview scrolltorowatindexpath:lastindexpath atscrollpositionbottom animated:no]. work estimatedrowheight, heightforrowatindexpath called visible items. (but doesn't make difference issue if deactivate it)

running on ios 8 device (iphone 6, iphone 5s) works fine. bottom (last item) last visible item on screen cellforrowatindexpath , heightforrowatindexpath called. on ios 7 device (iphone 4s) heightforrowatindexpath called , no item on tableview visible. if scroll 2 times cellforrowatindexpath called , items appear. setting scrolltorowatindexpath animated:yes doesn't make difference.

any suggestions?

edit: without scrolltorowatindexpath works fine well, list @ top. (missed goal)

edit 2: after returning (cgfloat)100 estimatedheightforrowatindexpath works. depending on height of items doesn't scroll end of list. therefor returned first 8 items (cgfloat)500 , afterwards (cgfloat)100 (this gives me error described @ beginning). other workaround bottom of list?


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -