2010-04-26 24 views

回答

2

的細胞表現出的UIButton你需要把這個委託方法-tableView:cellForRowAtIndexPath:,對於表視圖初始化並返回細胞:

- (UITableViewCell *) tableView:(UITableView *)tv cellForRowAtIndexPath:(NSIndexPath *)indexPath { 
    // initialize cell and contents here, for the specified indexPath value 
} 

您可能想要閱讀Table View Programming Guide for iPhone OS,這將詳細解釋這一點。