UITableView
大量のデータがあります。そして、私はUITableViewCell
毎回次のように作成します:
UITableViewCell *cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:strCellIdentifier];
その後UIView
、サブビューとして多くのUITableViewCell
を追加します。
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
[button addTarget:self action:@selector(onDocumentLogoTapped:) forControlEvents:UIControlEventTouchUpInside];
button.frame = imageRect;
button.tag = indexPath.row;
[cell addSubview:button];
そして、そのように私も追加しUIImageView
ます。問題は、UITableView
メモリの問題が原因で、私の速度が非常に遅くなり、アプリケーションがクラッシュすることです。
UITableViewCell
subViewを追加するときに、誰かが私に適切な使用方法を提案できますか?