Fix dangling deprecated calls.

This commit is contained in:
Zev Eisenberg
2015-07-24 21:17:48 -04:00
parent 87fe6e7185
commit e142bfa43f
3 changed files with 11 additions and 11 deletions

View File

@@ -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;
}

View File

@@ -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;

View File

@@ -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"]];
}
/*