CocoaPods trunk is moving to be read-only. Read more on the blog, there are 12 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Jan 2015 |
Maintained by Daniele Bogo.
A simple object to load images asynchronously
The recommended approach for installating DBImageView is via the CocoaPods package manager, as it provides flexible dependency management and dead simple installation.
platform :ios, '6.0'
pod 'DBImageView', '~> 1.0'DBImageView has a simple integration:
#import "DBImageView.h"Add DBImageView:
DBImageView *imageView = [[DBImageView alloc] initWithFrame:(CGRect){ 10, 10, 60, 60 }];Set the remote image path:
[imageView setImageWithPath:@"remote_image_URL"];You can set a placeholder:
[imageView setPlaceHolder:[UIImage imageNamed:@"Placeholder"]];If you use a collection or a table, trigger the load action when you want
- (void) scrollViewWillBeginDragging:(UIScrollView *)scrollView
{
[DBImageView triggerImageRequests:NO];
}
- (void) scrollViewDidEndDecelerating:(UIScrollView *)scrollView
{
[DBImageView triggerImageRequests:YES];
}6.0
1.3.1