這是一種合適的方式還是有更好的解決方案?將UIImageView添加到自定義UITableView Cell
非常感謝!
Code
(rowAtIndexPath)
UIImageView * imageView = [[UIImageView alloc] initWithFrame:CGRectMake(500, 50, 20, 20)];
imageView.image = [UIImage imageNamed:@"Icon.png"];
[cell addSubview:imageView];
[http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/TableView_iPhone/TableViewCells/TableViewCells.html](http://developer。 apple.com/library/ios/#documentation/userexperience/conceptual/TableView_iPhone/TableViewCells/TableViewCells.html):) – Kjuly
我只是使用[cell addSubview:imageView]。但對於其餘的它看起來不錯 – Novarg