FAQ Database Discussion Community


Apply category to a framework class

ios,parse.com,uiimageview,sdwebimage,objective-c-category
What I want to achieve is to enable the PFImageView class (from Parse framework) respond to SDWebImage methods. SDWebImageis a framework in itself, but since it essentially applies a category to UIImageView - and PFImageView inherits from UIImageView - it seems that it should be possible to achieve this. I...

Check If Server's Image is Already Updated and Download Again

ios,swift,parse.com,nsdata,sdwebimage
I would like to know what is the proper way of caching image and store it to Parse.com, and load it back, update cache etc. So here is the scenario: I have a social network app where user can upload their profile picture. Once the user upload the picture. I...

How to import and use SDWebImage in swift xcode 6.3.1

ios,xcode,uitableview,swift,sdwebimage
Im new to Swift and now making a project that includes showing many photos from the web and I understand that I need to use SDWebImage. I saw related questions here and in other places but all are in Objective-C syntax and not working for me. What I did till...

SDWebImage library load only two image

ios,image,caching,imageview,sdwebimage
I am using SDWebImage library for caching image for UICollectionView that is download from url,every time it send all request but download only two image. Can anyone know the reason??? Thanks in advance. The code is: SDWebImageManager *manager = [SDWebImageManager sharedManager]; [manager downloadWithURL:[NSURL URLWithString:[fileimagepath objectAtIndex:indexPath.row]] options:0 progress:nil completed:^(UIImage *image, NSError...

SDWebImage linking issue

ios,objective-c,iphone,sdwebimage,image-caching
I am trying to use SDWebImage framework for asynchronous loading and caching images. I could integrate SDWebImage project in to my project and build successfully. But I cannot use this line of code [pCell.imgViewThumb sd_setImageWithURL:[NSURL URLWithString:aPromo.picture_url_thumb] placeholderImage:[UIImage imageNamed:@"Placeholder.png"]]; It gives this error No visible @interface for 'UIImageView' declares the selector...

SDWebImage Library - placeholder from URL

ios,image,uitableview,asynchronous,sdwebimage
I'm using SDWebImage to download and cache images in an UITableView asynchronously but I'm having some problems. The scenario is the following: When the cell is created I want to load a low quality blurred image (1-2kb) from an URL, before the real image comes in. After the higher quality...

SDWebImage + MBProgressHUD

ios,sdwebimage,mbprogresshud
Good day! I use these two libraries when download full sized images from web. CODE: -(void)viewDidAppear:(BOOL)animated { dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^ { [imageView sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@", img]] placeholderImage:[UIImage imageNamed:@"stub_image.jpg"]]; dispatch_async(dispatch_get_main_queue(), ^ { [MBProgressHUD hideHUDForView:self.view animated:YES]; }); }); It turns out that the full size picture is loaded later than hiding the...

sdwebimage cache reaches max size

ios,image,caching,sdwebimage
I am using SDwebimage Framework for caching images, so downloading number of images increases daily, so after 3-4 days of using application, causes increasing cache,which causes application performance degrading, is there anyway to improve performance

UICollectionView Scroll Freeze with NSData (imageView)

ios,uicollectionview,nsdata,uicollectionviewcell,sdwebimage
I've UICollectionView with UITableView in the same page. I'm using SDWebImage with UITableView and it is working fine. I'm trying to use SDWebImage with UICollectionView but couldn't make it. So I have used NSData but it is freezing with it. How I can solve this issue? UPDATE: Is there a...

Images are setting incorrectly in cellForRowAtIndexPath in SDWebImage

ios,objective-c,uitableview,swift,sdwebimage
I'm using SDWebImage, I'm creating download progress effect same as WhatsApp app. The problem is that when I scroll tableView, It is showing incorrect images for cells.(i.e: When cells are reused random images are setting in cells.) Here is my code in Swift: func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) ->...

Importing SDWebImage into Swift project

ios,swift,sdwebimage
Trying to install SDWebImage into my Swift project. I am using the following instructions (https://github.com/rs/SDWebImage): Download and unzip the last version of the framework from the download page Right-click on the project navigator and select "Add Files to "Your Project": In the dialog, select SDWebImage.framework: Check the "Copy items into...

sequence of photos are mixed in ios

ios,objective-c,uitableview,uiscrollview,sdwebimage
I have a dynamic array of photos. When I'm trying to put this in horizontal UIScrollView, I'm losing the sequence of photos. UIScrollView is in UITableViewCell. the code is running below function (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath for (int i = 0; i < [self.attachments count]; i++) { [newArr setDictionary:[self.attachments...