This tutorial will show you how to animate UIView into the ViewController. This looks good when you have animation in you application but sometimes too much animation is bad.

I’ll be animating UIView as coming from top of the screen to middle. This sort of thing is good on login screen or may be in some other cases.

Let’s Start:

In – (void)viewDidLoad { add the following code:

My UIView name is loginView in the above example which is an IBOutlet in my viewController.h file. To Change the position from where you want to start change the fromValue in the code above.

Tags : animate UIViewanimation in ios
Chaudhary Talha

The author Chaudhary Talha

I'm an iOS developer by profession and UI/UX designer by passion. All my tutorials are based on my personal experiences and whenever I learn something new I share it with the world.