UITableView 滾動到指定行 section


    NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:2];

    CGRect frame = [tableview rectForSection:indexPath.section];

    [tableview setContentOffset:CGPointMake(0, frame.origin.y) animated:YES];

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章