As a photo here, there is a placeholder in the image view as the image is being downloaded in the background, how do I Can I apply it?
You can use it for iOS This is the best networking library for iOS. That is the use of great apps such as Facebook iOS Horizontal Apps, AAA Networking.
#import "UIImageview + afnetworking.h"
After importing, just use this kind of
[ImageView setImageWithURLRequest: [NSURLRequest requestWithURL: [NSURL URLWithString: @ "http://someurl.com"] Placeholder image: [UIImage imageNamed: @ "loading.png"] Success: ^ (NSURLRequest * request, NSHPRRSRons * response, UIMJ * Image) {imageView.image = image; } Failure: zero];
No comments:
Post a Comment