度娘上有很多都介紹了默認(rèn)選中第一行的方法。關(guān)鍵在于這個(gè)方法寫到哪兒才會(huì)生效,不然即便copy、past也沒用。
[self.YourTableView reloadData];
NSIndexPath *ip=[NSIndexPath indexPathForRow:0 inSection:0];
[self.YourTableView selectRowAtIndexPath:ip animated:YES scrollPosition:UITableViewScrollPositionBottom];
寫到 UITableView的ReloadData方法之后才管用哦。