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
Post a Comment