ben_c
ben_c

Reputation: 5

UITextView filling entire frame

I assume this is related to NUI, which I've just started implementing. I've just placed a UITextView into my view with Interface Builder, but when I go into the simulator, it simply fills the entire view with the text box.

Any ideas why this may be?

View controller in Interface Builder

View controller in Interface Builder

View controller in iPhone Simulator

View controller in Simulator

Upvotes: 0

Views: 391

Answers (1)

Brian Nickel
Brian Nickel

Reputation: 27550

I've been able to replicate the behavior you're seeing on the simulator.

If you select your text field in the IB and look at its outlets, you should see something like the below where it has a Referencing Outlet to the view controller's view property.

When the view controller is being loaded this relationship forces the text field to take up the whole screen. Deleting the referencing outlet should cause the screen to display correctly.

enter image description here

Upvotes: 1

Related Questions