ios - Animation to expand from center to the edges, revealing parentView below -




i have added uiview (containing within uivisualeffectview - blur) subview of view. animate subview center outwards towards edges in radial fashion, expanding circle. should reveal superview below.

here code:

self.blurview =  [[uiview alloc]initwithframe:cgrectmake(0, 0, self.view.bounds.size.width, imageheight)]; [superview addsubview: self.blurview]; uivisualeffect *blureffect = [uiblureffect effectwithstyle:uiblureffectstylelight]; uivisualeffectview *visualeffectview = [[uivisualeffectview alloc] initwitheffect:blureffect]; visualeffectview.frame = self.blurview.bounds; [self.blurview addsubview:visualeffectbuttonview]; 

[uiview animatewithduration:3.0 delay:0 options:uiviewanimationoptioncurvelinear  animations:^{         //code animation         self.blurview.frame = cgrectmake(self.blurview.frame.origin.x,                      -self.blurview.frame.size.height,                      self.blurview.frame.size.width,                      self.blurview.frame.size.height);     } completion:^(bool finished) {         //code completion         [self.blurview removefromsuperview];     }]; 




wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -