1.4 Show and hide a UIButton with animation

Опубликовано: 15 Октябрь 2024
на канале: Paul Solt
14,167
44

Download the videos and source code from http://iphonedev.tv/AutoLayoutUIButton

Now that you have Auto Layout defining the size and position of the button, you can animate it using UIView animation blocks.

Add an animation block and make sure that you force immediate layout updates by calling self.view.layoutIfNeeded() in your animation block.

--
Click here to Subscribe to learn how to make iPhone apps. http://www.youtube.com/subscription_c...

Website: http://iPhoneDev.tv
iPhone App Courses: http://learn.iphonedev.tv/course/pro/