UITableView 시작 후 스크롤 위치 자동 설정

원본 주소:http://blog.csdn.net/a6472953/article/details/8443242
  viewDidAppear      [tablvew setContentOffset:CGPointMake(0,480) animated:YES];  
 tableView     searchbar,    ;     headerView(  tableView    headerView   :  44)  
UISearchBar *mySearchBar = [[UISearchBar alloc] init];  
[mySearchBar sizeToFit];  
  
tableView.tableHeaderView = mySearchBar;  
//UITableView        (     headerView     )  
[tableView setContentOffset:CGPointMake(0.0, 44.0) animated:NO]; 

좋은 웹페이지 즐겨찾기