首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

uitableview滚动到最后一起

2012-08-27 
uitableview滚动到最后一行- (void)scrollTableToFoot:(BOOL)animated {NSInteger s [self.chatTable nu

uitableview滚动到最后一行

- (void)scrollTableToFoot:(BOOL)animated {    NSInteger s = [self.chatTable numberOfSections];if (s<1) return;NSInteger r = [self.chatTable numberOfRowsInSection:s-1];if (r<1) return;NSIndexPath *ip = [NSIndexPath indexPathForRow:r-1 inSection:s-1];[self.chatTable scrollToRowAtIndexPath:ip atScrollPosition:UITableViewScrollPositionBottom animated:animated];}

热点排行