現在、セルに画像を表示する方法は 2 つあります。テーブルをスムーズに実行するのに役立つ方法はどれですか。後で lazytable を使用しますか? 各セルでは、ボタンに setimage を指定する必要がありますか? また、最初の方法では、各画像を動的にスケーリングする必要があります。ありがとうございました!
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
UIImage *img = [UIImage imageWithData:"png image from url"];
[button setImage:img forState:UIControlStateNormal];
/// Or
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
UIImage *img = [UIImage imageWithData:"png image from url"];
UIImageView *imageView2 = [[UIImageView alloc] initWithImage:img];
[button2 addSubview:imageView2];