- Fix performance in loading Images
This commit is contained in:
1 parent
273b0a378b
commit
38c37e33e1
2 files changed
+8
-5
No files matched your search
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
Pod::Spec.new do |s|
|
Pod::Spec.new do |s|
|
||||||
s.name = 'PNTwitterCover'
|
s.name = 'PNTwitterCover'
|
||||||
s.version = '1.0.2'
|
s.version = '1.0.3'
|
||||||
s.summary = 'PNTwitterCover is a UUIscrollView Category to add blur and zoom during scroll bounce'
|
s.summary = 'PNTwitterCover is a UUIscrollView Category to add blur and zoom during scroll bounce'
|
||||||
|
|
||||||
# This description is used to generate tags and improve search results.
|
# This description is used to generate tags and improve search results.
|
||||||
|
|||||||
@@ -50,10 +50,13 @@
|
|||||||
{
|
{
|
||||||
CGFloat factor = 0.1;
|
CGFloat factor = 0.1;
|
||||||
[_blurImages addObject:self.image];
|
[_blurImages addObject:self.image];
|
||||||
for (NSUInteger i = 0; i < 20; i++) {
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{
|
||||||
[_blurImages addObject:[self.image boxblurImageWithBlur:factor]];
|
CGFloat factor = 0.1;
|
||||||
factor+=0.04;
|
for (NSUInteger i = 0; i < 20; i++) {
|
||||||
}
|
[_blurImages addObject:[self.image boxblurImageWithBlur:factor]];
|
||||||
|
factor+=0.04;
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setScrollView:(UIScrollView *)scrollView
|
- (void)setScrollView:(UIScrollView *)scrollView
|
||||||
|
|||||||
Reference in new issue
Block a user