This commit is contained in:
zhongwuzw 2018-11-15 21:32:05 +08:00
parent 8c7764e122
commit 9dacf99738
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:MyIdentifier];
}
// Here we use the provided sd_setImageWithURL: method to load the web image
// Here we use the provided sd_setImageWithURL:placeholderImage: method to load the web image
// Ensure you use a placeholder image otherwise cells will be initialized with no image
[cell.imageView sd_setImageWithURL:[NSURL URLWithString:@"http://example.com/image.jpg"]
placeholderImage:[UIImage imageNamed:@"placeholder"]];