There are one to three UITableViewCells in a UITableViewView. Is there a way to always position the cell(s) at the bottom of screen after rel
USE THIS. Surely this will help.
- (void)reloadData
{
[super reloadData];
[self recalculateContentInset];
[self recalculateScrollIndicator];
}
- (void)recalculateContentInset
{
CGFloat contentInsetHeight = MAX(self.frame.size.height - self.contentSize.height, 0);
CGFloat duration = 0.0;
[UIView animateWithDuration:duration
delay:0
options:UIViewAnimationOptionCurveEaseOut
animations:^{
[self setContentInset:UIEdgeInsetsMake(contentInsetHeight, 0, 0, 0)];
}completion:nil];
}
- (void)recalculateScrollIndicator
{
if(self.contentSize.height >= self.frame.size.height){
[self setShowsVerticalScrollIndicator:YES];
} else {
[self setShowsVerticalScrollIndicator:NO];
}
}