Animations plays a big role in making a smartphone app a nice looking app. IOS apps have different animations that made user’s and developer’s fond of IOS platform.
In this post, we are going to share the code for Fade In and Fade out animations. To do these animations we will use UIView’s animateWithDuration callback. To fade In a view, we will set the view’s alpha to zero at the start and then inside our animation callback set view’s alpha to 1.0. On the other hand to Fade out a view we will set its alpha to zero inside animation callback. The face in and fade out animation will work as shown in the image left to your screen. Below are the codes for both animations.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.