uiview - Xcode scaling image to 0 and then returning to original size. -
i new objective-c , coding in general , having difficult time trying figure out code trying write program. want image scale 0 when push button , return original size. far able scale 0 have no idea how return original size.
-(void)rotate_imageview { [uiview animatewithduration: 0.5 delay:0.0 options:uiviewanimateoptioncurvelinear animations:^{ cgaffinetransform scale = cgaffinetransformmakescale(0, 0); cgaffinetransform translate = cgafffinetransformmaketranslation(10.0, 10.0); self.imageview.transform = cgaffinetransformconcat(scale, translate); } completion:^(bool finished) { }];
Comments
Post a Comment