SDWebImage Set Image To UIButton in CellView Using Swift
问题 Hi I am using SDWebImage to set image to a button in xcode 10.2.1. I am trying the following import SDWebImage cell.bProfileImage.sd_setImage(with:URL(string: individualChatsListArray[indexPath.row].profile_image), forState:.normal) But I am getting the following error Value of optional type 'UIButton?' must be unwrapped to refer to member 'sd_setImage' of wrapped base type 'UIButton' In the nib file the items are linked and declared as per below @IBOutlet weak var bProfileImage: UIButton!