0
1

More than 3 years have passed since last update.

KingFisherでUIButtonにリモート画像を設定するには、buttonTypeをカスタムに設定します。

let button = UIButton(type: .custom)
button.kf.setImage(with: url, for: .normal)

これでオッケー。

🐣


フリーランスエンジニアです。
お仕事のご相談こちらまで
rockyshikoku@gmail.com

Core MLを使ったアプリを作っています。
機械学習関連の情報を発信しています。

Twitter
Medium

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1