TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | Apache 2 |
ReleasedLast Release | Dec 2014 |
Maintained by Dalton Cherry.
A simple, asynchronous, network based avatar library for iOS and OSX. This makes using network based avatars simple, while still having great performance.
A subclass for UIImageView and NSImageView is provided to make using DCAvatar very simple.
DCImageView *imageView = [[DCImageView alloc] initWithFrame:CGRectMake(70, 70, 60, 60)];
imageView.avatarValue = @"http://imgs.xkcd.com/comics/password_reuse.png";
[self.view addSubview:imageView];
Also supported are domain via meta tag scraping:
DCImageView *imageView = [[DCImageView alloc] initWithFrame:CGRectMake(70, 70, 60, 60)];
imageView.avatarValue = @"http://github.com";
[self.view addSubview:imageView];
and what is great avatar support without a little gravatar?
DCImageView *imageView = [[DCImageView alloc] initWithFrame:CGRectMake(70, 70, 60, 60)];
imageView.avatarValue = @"[email protected]";
[self.view addSubview:imageView];
Other notable features:
The recommended approach for installing DCAvatar is via the CocoaPods package manager, as it provides flexible dependency management and dead simple installation.
via CocoaPods
Install CocoaPods if not already available:
$ [sudo] gem install cocoapods
$ pod setup
Change to the directory of your Xcode project, and Create and Edit your Podfile and add DCAvatar:
$ cd /path/to/MyProject
$ touch Podfile
$ edit Podfile
platform :ios, '5.0'
# Or platform :osx, '10.8'
pod 'DCAvatar'
Install into your project:
$ pod install
Open your project in Xcode from the .xcworkspace file (not the usual project file)
DCAvatar requires at least iOS 5/Mac OSX 10.8 or above.
DCAvatar is license under the Apache License.