Note that there are some explanatory texts on larger screens.

plurals
  1. POScrolling is not proper When i used SDWebImage
    primarykey
    data
    text
    <p>I have this very serious problem of scrolling the table.</p> <p>Initially i used GCD for loading the image in Background and setting on table cell. but the table was not scrolling smoothly. So i used SDWebImage for that but then the same thing is happening.</p> <p>Could anyone let me know the reason for this. Why the table Scrolling is not smooth as expected.</p> <p>Please let me know your views as my app is waiting its release for the only same purpose.</p> <p>Code :</p> <pre><code>-(UITableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ NSString *CellIdentifier = @"Cell"; customCellForExhibitor *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { NSArray *xibPath = [[NSBundle mainBundle]loadNibNamed:@"customCellForExhibitor" owner:self options:nil]; for (id fileObject in xibPath) { cell = (customCellForExhibitor*)fileObject; } } objDataModel = [parserDataContentArray objectAtIndex:indexPath.section]; cell.exhibitorNameLabel.text = [objDataModel exhibitorNameObjectClass]; cell.exhibitorText.text = [objDataModel exhibitorOfferObjectClass]; cell.exhibitorSponsorType.text = [objDataModel exhibitorSponsorTypeObjectClass]; [cell.exhibitorSponsorType setTextAlignment:NSTextAlignmentRight]; // #pragma mark GCD; // // NSString *ImageURL = [[parserDataContentArray objectAtIndex:indexPath.section] exhibitorImageObjectClass]; //// NSData *imageData = [NSData dataWithContentsOfURL:[NSURL URLWithString:ImageURL]]; //// cell.exhibitorImage.image = [UIImage imageWithData:imageData]; // // dispatch_queue_t concurrentQueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); // //this will start the image loading in bg // dispatch_async(concurrentQueue, ^{ // NSData *imageData = [NSData dataWithContentsOfURL:[NSURL URLWithString:ImageURL]]; // // //this will set the image when loading is finished // dispatch_async(dispatch_get_main_queue(), ^{ // // cell.exhibitorImage.image = [UIImage imageWithData:imageData]; // [cell setNeedsDisplay]; // // }); // }); NSString *ImageURL = [[parserDataContentArray objectAtIndex:indexPath.section] exhibitorImageObjectClass]; [cell.exhibitorImage setImageWithURL:[NSURL URLWithString:ImageURL] placeholderImage:[UIImage imageNamed:@"placeholder.png"]]; if ([cell.exhibitorSponsorType.text isEqualToString:@"Gold"]) { cell.exhibitorSponsorType.textColor = [UIColor colorWithRed:255/255.0 green:215/255.0 blue:0 alpha:1]; } else if ([cell.exhibitorSponsorType.text isEqualToString:@"Silver"]){ cell.exhibitorSponsorType.textColor = [UIColor colorWithRed:192/255.0 green:192/255.0 blue:192/255.0 alpha:1]; } else cell.exhibitorSponsorType.textColor = [UIColor colorWithRed:229/255.0 green:228/255.0 blue:226/255.0 alpha:1]; return cell; } </code></pre> <p><strong>Thank You Best Regards.</strong></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload