I have a login view with username & password textfields and two buttons for “sign in” and “create new account”. Currently, I have it so that if the user clicks the “create new account” button, it loads a new view with the same controls, except the “sign in” button is removed and a “confirm password” text field is added. Is is possible to add/remove these controls to the same view instead of loading a new view? If so, is it possible to animate this as well?
Thanks so much in advance for your wisdom!
You could try a simple UIView animation. I don’t think you can animate
addSubview:orremoveFromSuperview:but you can animate changes in alpha:Those are the basics. Check out Apple’s docs for more details on callbacks, using blocks, more animation parameters, etc:
https://developer.apple.com/library/ios/#documentation/WindowsViews/Conceptual/ViewPG_iPhoneOS/AnimatingViews/AnimatingViews.html#//apple_ref/doc/uid/TP40009503-CH6-SW1