にを追加するUIButton
と、メモリの問題が発生しUITableView
ます。UIButton
以下は、の画像を設定するための私のコードです。
UIImage *image = [UIImage imageWithContentsOfFile:imagePath];
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
[button setImage:image forState:UIControlStateNormal];
しかし、メソッドのimageName:
代わりにimageWithContentsOfFile:
メソッドを使用すると、完全に機能します。誰かがこの問題の良い解決策を持っていますか?