如何在 UIButton 上放置图像/我在哪里可以找到好的图标?

How to put an image on a UIButton / Where can I find good icons?

在我的应用程序中,我有很多 UIButton,我想放一张图片,而不是 Xcode 向我们建议的简单 UIButton

喜欢 http://icones.pro/?s=refresh 上的内容,因为我想重新加载一些数据。

我真的不知道如何处理,我找到了一些答案,但它不是像 Eclipse 那样 Android 我们需要在某些 drawables 文件夹中添加图像吗?

如果有人知道其他一些我可以找到很多图标的好网站,我将不胜感激:)

viewDidLoad中写下代码:

[YourButtonOutlet setBackgroundImage:buttonImage forState:UIControlStateNormal]; 

您还可以通过属性检查器设置 UIButton 图像:

您可以从这里找到一些很棒的图标:

https://www.iconfinder.com/

https://design.google.com/icons/