ios - Floating star effect with an animation and UIImageView -


i need make floating star effect uiimageview when view load , put below code method , call viewwillappear doesn't work expected. little star must became large (4 x height , width) , centered animation work reverse. star starts 4 x height , width , start became smaller.

    [uiview animatewithduration:3                       delay:0.1                     options: uiviewanimationoptioncurveeasein                  animations:^{                       self.daystar.frame = cgrectmake(0, 0, self.view.frame.size.width * 4, self.view.frame.size.height * 4);                      self.daystar.center = self.view.center;  } 

what need change on code , should put it. thanks.

seems overrides lines. it's code change daystar? scale use:

[self.daystar settransform:cgaffinetransformmakescale(scale, scale)] 

Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -