mirror of
https://github.com/zhigang1992/PINRemoteImage.git
synced 2026-03-30 17:24:00 +08:00
Fix dangling deprecated calls.
This commit is contained in:
@@ -169,16 +169,16 @@
|
||||
cell.imageView.alpha = 0.0f;
|
||||
__weak PINImageCell *weakCell = cell;
|
||||
|
||||
[cell.imageView setImageFromURL:kitten.imageURL
|
||||
completion:^(PINRemoteImageManagerResult *result) {
|
||||
if (result.requestDuration > 0.25) {
|
||||
[UIView animateWithDuration:0.3 animations:^{
|
||||
[cell.imageView pin_setImageFromURL:kitten.imageURL
|
||||
completion:^(PINRemoteImageManagerResult *result) {
|
||||
if (result.requestDuration > 0.25) {
|
||||
[UIView animateWithDuration:0.3 animations:^{
|
||||
weakCell.imageView.alpha = 1.0f;
|
||||
}];
|
||||
} else {
|
||||
weakCell.imageView.alpha = 1.0f;
|
||||
}];
|
||||
} else {
|
||||
weakCell.imageView.alpha = 1.0f;
|
||||
}
|
||||
}];
|
||||
}
|
||||
}];
|
||||
return cell;
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
{
|
||||
[super viewWillAppear:animated];
|
||||
|
||||
[self.imageView setImageFromURL:[NSURL URLWithString:@"https://s-media-cache-ak0.pinimg.com/736x/5b/c6/c5/5bc6c5387ff6f104fd642f2b375efba3.jpg"] processorKey:@"rounded" processor:^UIImage *(PINRemoteImageManagerResult *result, NSUInteger *cost)
|
||||
[self.imageView pin_setImageFromURL:[NSURL URLWithString:@"https://s-media-cache-ak0.pinimg.com/736x/5b/c6/c5/5bc6c5387ff6f104fd642f2b375efba3.jpg"] processorKey:@"rounded" processor:^UIImage *(PINRemoteImageManagerResult *result, NSUInteger *cost)
|
||||
{
|
||||
UIImage *image = result.image;
|
||||
CGFloat radius = 7.0f;
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
- (void)viewDidAppear:(BOOL)animated
|
||||
{
|
||||
[super viewDidAppear:animated];
|
||||
[self.imageView setImageFromURL:[NSURL URLWithString:@"https://github.com/samdutton/simpl/blob/master/picturetype/kittens.webp?raw=true"]];
|
||||
[self.imageView pin_setImageFromURL:[NSURL URLWithString:@"https://github.com/samdutton/simpl/blob/master/picturetype/kittens.webp?raw=true"]];
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user