2013-05-10 38 views

回答

5

你只可以手動調用該方法在viewDidLoad

- (void)viewDidLoad { 
    [super viewDidLoad]; 

    // select the first row 
    NSIndexPath *firstRowPath = [NSIndexPath indexPathForRow:0 inSection:0]; 
    [self.tableView selectRowAtIndexPath:firstRowPath animated:NO scrollPosition: UITableViewScrollPositionNone]; 
    [self tableView:self.tableView didSelectRowAtIndexPath:firstRowPath]; 
} 
+0

非常感謝!我很無聊 – 2013-05-10 03:04:18

+0

很高興幫助! – jszumski 2013-05-10 03:05:05

相關問題