ios - uitableview contentInset issue -


i have strange issue contentinsent. implementing "pull & release" refresh on uitableview , works fine, in cases display "loading" status without user interaction. thought use contentinset in following way:

scrollview.contentinset = uiedgeinsetsmake(60.0f, 0.0f, 0.0f, 0.0f); 

everything works fine 1 or 2 cells displayed - out of 3 possible on view. once number of cells grows banner @ top not displayed, @ same time manually scrolling works fine. have move scroll besides moving content?

ok, found answer playing bit different values. turnes out in case described above besides setting contentinset have setup contentoffset. in case following code worked:

scrollview.contentinset = uiedgeinsetsmake(60.0f, 0.0f, 0.0f, 0.0f);     scrollview.contentoffset = cgpointmake(0.0f, -60.0f); 

Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -