Skip to content
This repository has been archived by the owner on Aug 14, 2019. It is now read-only.

AvatarImage API design #43

Closed
zhigang1992 opened this issue Jul 28, 2013 · 3 comments
Closed

AvatarImage API design #43

zhigang1992 opened this issue Jul 28, 2013 · 3 comments

Comments

@zhigang1992
Copy link
Contributor

The AvatarImage may not be ready at the first place...
There might be only an Avatar Address like most RESTful service.

Asking for AvatarImage may not as powerful as exposing the AvatarView.
In which case, use can customize the UIImageView more freely.

Like setting the Image with SDWebImage or AFNetworking.
Custom the boarder, and maybe add a little title when black background in the lower third.

After all,
It's just my opinion.

@jessesquires
Copy link
Owner

Right, I agree. With this design, you can still handle this in your subclass by providing a place holder image until the real avatar image has been loaded. But, being able to use SDWebImage would be a plus — I'll refactor to make this an option. :)

@benbruscella
Copy link

+1. Any examples on how you could currently do this with a placeholder image?

@jessesquires
Copy link
Owner

Done! Added in v2.5, see the datasource method:

- (UIImageView *)avatarImageViewForRowAtIndexPath:(NSIndexPath *)indexPath;

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants