I have a login screen in my app on which I hide UITextFields depending on whether it's the first time the user has logged in.
I have 5 fields in total, and the middle 3 get hidden. In this instance, I want to move the bottom field up so that it sits where the second used to (i.e. underneath the first).
I'd been doing this by setting the center attribute of the bottom field to be the same as the second in ViewDidLoad - this worked fine but has suddenly stopped and I'm not sure what I've done (if anything) to cause this.
Any ideas, or better ways to do this?
I have 5 fields in total, and the middle 3 get hidden. In this instance, I want to move the bottom field up so that it sits where the second used to (i.e. underneath the first).
I'd been doing this by setting the center attribute of the bottom field to be the same as the second in ViewDidLoad - this worked fine but has suddenly stopped and I'm not sure what I've done (if anything) to cause this.
Any ideas, or better ways to do this?