Reputation: 141
I want a view, which is in LANDSCAPE mode, to move up when a textField is being edited (because it is covered by the keyboard), the problem is that I'm not setting correctly the coordinates because the view moves to the left instead of going up, it seems as X values were changed by Y values and voiceovers. What am I doing wrong? How can I get it solved? Is there any special code for LANDSCAPE mode?
CODE:
self.view.frame = CGRectMake(0, -160, 300, 480);
Thanks a lot!!
Upvotes: 1
Views: 1634
Reputation: 2755
Often the most tedious mistakes are the ones we never look for. :P
self.view.frame = CGRectMake(0, -160, 480, 300);
Upvotes: 3