새로운 Swift 3 프로젝트 (XCode 버전 8.2.1 (8C1002))와 함께 SDWebImage (3.8.2)와 함께 CocoaPods를 사용하고 있습니다. 코드를 다음 것은 UICollectionViewController 내에서 잘 컴파일 : 내가 신속한 파일의 맨 위에 SDWebImage을 가져온iOS : Swift : SDWebImage : cell.customImageView.sd_setImage (with imageURL)이 충돌합니다.
override func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
...
cell.customImageView.sd_setImage(with: imageURL, completed:{
(SDWebImageCompletionBlock) in
})
...
}
. customImageView는 UICollectionViewCell가
@IBOutlet weak var customImageView: UIImageView!
그러나이 다음 오류와 함께 실행에 충돌 사용자 정의 내에서 정의 된 UIImageView에 있습니다 :
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIImageView sd_setImageWithURL:completed:]: unrecognized selector sent to instance ...'
이 잘 컴파일하지만 런타임에 충돌 왜 어떤 아이디어?
에게 최신 버전은 V-4.0.2.beta 인 콘센트, 분리를 확인 빌드 설정 – aircraft