I have used the demonstration code Apple has in their docs here:
To have my view move accordingly depending on which textField is being edited. It works great, my view moves as I expect, except for one thing.
My issue is, I can select a textField and it will only move the view up when I begin typing and not when I actually select the textField.
I am literally using identical code as in the docs (follow the link above). Quite frustrating, I can’t see what would cause this. Thanks.
Here is The Logic See.
1)You need a
FlagValue SetTRUEinitially inViewDidLoadorviewWillAPpear.suppose
isNeedToMoveis that Flag value.you need to Implement these methods in Your Code,for using them don’t forget to
Adoptthe protocolUITextFieldDelegatein yourUIViewcontroller.h class.EDIT:Here I have Chnaged The Code AS you mentioned in yOur Comment You needed to move That UIView on just Touching the
TextFIeld.See Here below Is The Logic With SOme Code.addTarget To the
TextFieldinViewDiodiLoadI hope you may get Some idea .