カスタム UITableViewCell のこのコードを見つけました:
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil)
{
NSArray* views = [[NSBundle mainBundle] loadNibNamed:@"MyCustomCell" owner:nil options:nil];
MyCustomCell *customCell = [[MyCustomCell alloc]init];
MyCustomCell.cellImage = [arrayImages objectAtIndex:indexPath.row];
for (UIView *view in views)
{
if([view isKindOfClass:[UITableViewCell class]])
{
cell = (MyCustomCell *)view;
}
}
}
この特定の部分がどのように機能するかわかりませんでした:cell = (MyCustomCell *)view;
以前に作成した MyCustomCell (customCell) のインスタンスを変更したかったのですが、どうすれば変更できますか?