solarissf
solarissf

Reputation: 1277

first project, ios simulator view cut off

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?

enter image description here

any ideas?

Upvotes: 1

Views: 1898

Answers (2)

Stephan Boner
Stephan Boner

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

Rahul
Rahul

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

Related Questions