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

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

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -