How to set the growth effect for video playback in this view?

I want to create an application on an iPad. like "Showyou" in iTunes

To do this, I need to set the effect of the viewing effect when the user touches the video image and hides with animation in its place, when the user touches an appearance similar to the popover in the ipad.

+4
source share
1 answer

I have not used the ShowYou application, but it seems that you need animation to enlarge / reduce the image and possibly move it. If this case tries this

// to make it grow in this case 1.5 and move it to a into position in this case 100, 100 [UIView animateWithDuration:_animationDuration animations:^{ CGAffineTransform transform = CGAffineTransformMakeScale(1.5f, 1.5f); testView.transform = CGAffineTransformTranslate(transform, 100.0f, 100.0f); } ]; // make it go back [UIView animateWithDuration:_animationDuration animations:^{ someView.transform = CGAffineTransformIdentity; } ]; 

You might want to use animateWithDuration: delay: options: animations: completion: so you can add code to do something after the animation finishes. Hope you are looking. :)

0
source

Source: https://habr.com/ru/post/1386701/


All Articles