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

iphone - Using nested NSDictionary with Picker -

javascript - Iterate over array and calculate average values of array-parts -

php - accessing mysql using different server to which db connection data is located -