我在看2011年的WWDC教程故事板。 在本教程中,我注意到下面的代碼:iOS - 初始化uitableViewCells?
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSindexPath *__strong)indexPath
{
// The identifier is defined in the storyboard
MyCustomCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MyCustomCell"];
return cell;
}
問題: 這是iOS 5中的新功能,並不需要你想重新使用它之前初始化一個細胞? 我覺得iOS 5中有太多的魔力。