-
tableView
一行代碼滾動到頂部
[self.tableView scrollRectToVisible:CGRectMake(0, 0, 1, 1) animated:YES];
2.ScrollView
一行代碼滾動到頂部
[self.scrollView setContentOffset:CGPointMake(0,0) animated:YES];
tableView
一行代碼滾動到頂部 [self.tableView scrollRectToVisible:CGRectMake(0, 0, 1, 1) animated:YES];
2.ScrollView
一行代碼滾動到頂部
[self.scrollView setContentOffset:CGPointMake(0,0) animated:YES];