UITableView滾動到指定位置

#pragma mark 滾動到相應位置
- (void)scrollWithType:(NSInteger)type {
    NSIndexPath * dayOne = [NSIndexPath indexPathForRow:0 inSection:type];
    [self.myTableView scrollToRowAtIndexPath:dayOne atScrollPosition:UITableViewScrollPositionTop animated:YES];
}
相關文章
相關標籤/搜索