2014-04-01 28 views

回答

1

使用UITableviewDelegate方法willDisplayCell: forRowAtIndexPath:,並檢查indexPath.rowdataSource陣列那麼火的方法。

- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath { 

    if ([dataSourceArray count]/2 == indexPath.row) { 
     //invoke the method here 
    } 
} 
相關問題