Reuse delay for UITableViewCells with FBProfilePictureView

I have an application that displays messages from a custom news feed in a UITableView. I use FBProfilePictureView to display a profile photo of the person who posted the message. It is great for capturing and displaying a pic profile, except when scrolling. There is a very noticeable lag when scrolling before viewing the image displays the image of a new user, where the view shows the image from the recycled cell.

+7
source share
2 answers

If you set profileID to nil before setting it to a new profileID line, FBProfilePictureView will display the default Facebook profile image while it is selected. This way, at least for now, you will not display the image from the previous cell.

Please note that setting the profile ID to the empty line @ "" will NOT have the same effect as displaying the default Facebook profile picture.

EDIT: I just upgraded to FB SDK 3.7, and the default profile image no longer displays as described above. Instead, when given nil, it does not display the image at all.

+5
source

I have implemented an improved facebook profile profile view that I successfully use in UITableViewCells. I just passed it to github . If you decide to try, I would like to receive feedback.

0
source

All Articles