Reputation: 1277
This is my first ios app and I am doing a simple project with button. I notice soon as I run simulator the simulator is not displaying the whole screen. I must be missing something very silly.
any ideas?
any ideas?
Upvotes: 1
Views: 1898
Reputation: 753
You have to add Constraints to your UITextField and your UIButton. Open up your Storyboard, select your View (your TextField or your Button) and add the Constraints for example as it is in the Picture.
Upvotes: 1
Reputation: 211
If you have created your UITextView programmatically then its very likely that you have not set proper width. Just shorten the width programmatically.
Or
If you have dragged and dropped it then re-adjust it by decreasing it with your cursor.
Or
It is because you have set the UITextView and UIButton in a larger version of iPhone and running in lower version . i.e You must have set the controls in iPhone 6 or 6+ and you might be running it in iPhone 4 or 5.
Upvotes: 1