objective c - UIRefreshControl offset changes after loading new items to UITableView -


i added uirefreshcontrol uitableview.

the uitableview under top bar.

everything works fine except when new items being loaded. example, if table had 1 row , now, after reloading data there 2 rows.

after table being reloading, uirefreshcontrol offset isn't in 0 position of uitable adding bar height user needs pull not height of uirefreshcontrol height of top bar.

after loading again same data, uirefreshcontrol ok.

- (void)viewdidload {     [super viewdidload];      [self setrefreshcontrol];  } -(void)setrefreshcontrol {     refreshcontrol = [[uirefreshcontrol alloc]init];     refreshcontrol.tintcolor=[uicolor redcolor];     [self.campaignstableview addsubview:refreshcontrol];     [refreshcontrol addtarget:self action:@selector(refreshtable) forcontrolevents:uicontroleventvaluechanged];  } 


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -