ios - Image in collection view sets with animation issue -


i'm setting image in uiimageview using sdwebimage in uicollectionview. scenario there expandable uilabel expand , collapse tapping on it. on tapping reloads particular cell. works problem when user puts app in background , takes in foreground , again tap in uilabel reloads cell , image gets set in animation glow affect in screen.below code i'm using in collectionviewcell method.

[uiview transitionwithview:self.imgbackground                   duration:0.0f                    options:uiviewanimationoptiontransitionnone                 animations:^{                     [self.imgbackground sd_setimagewithurl:[nsurl urlwithstring:[dictdata objectforkey:@"seasonimage"]]];                     self.imgbackground.contentmode = uiviewcontentmodescaleaspectfill;                     self.imgbackground.clipstobounds = yes;                 } completion:^(bool finished){                 }]; 

thanks in advance.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -