Przeglądaj źródła

Fixed a warning in the demo project

Bogdan Poplauschi 11 lat temu
rodzic
commit
e4b9ef512b
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Examples/SDWebImage Demo/MasterViewController.m

+ 1 - 1
Examples/SDWebImage Demo/MasterViewController.m

@@ -372,7 +372,7 @@
         cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
     }
 
-    cell.textLabel.text = [NSString stringWithFormat:@"Image #%d", indexPath.row];
+    cell.textLabel.text = [NSString stringWithFormat:@"Image #%ld", (long)indexPath.row];
     cell.imageView.contentMode = UIViewContentModeScaleAspectFill;
     [cell.imageView setImageWithURL:[NSURL URLWithString:[_objects objectAtIndex:indexPath.row]]
                    placeholderImage:[UIImage imageNamed:@"placeholder"] options:indexPath.row == 0 ? SDWebImageRefreshCached : 0];