문제

UIImageView+AFNetworking has always worked ok in a UITableViewCell for me. Images used to load smartly while scrolling and rarely failed to load. Recently, it stopped working well. Has anyone else experienced this? Was this UIImageView category never intended to work inside of a UITableView?

A few details: my UIImageView is inside of a UITableViewCell in a Storyboard. I call setImageWithURL: from within the cellForRowAtIndexPath: method.

The problems seem to have started when switching to AFNetworking 1.0, specifically in conjunction with moving to Xcode 4.6 and building against iOS 6.1 SDK.

도움이 되었습니까?

해결책

Use SDWebImage, a perfect replacement for AFNetworking and perfectly compatible with iOS 6.1.

다른 팁

Switched to the AsyncImageView library, using it in exactly the same way (from within cellForRowAtIndexPath:), and I've had no problems since. Might be an AFNetworking + iOS 6.1 bug... Would love to know if anyone else has had similar problems.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top