What Causes "view is clipping it content" in Xcode 6?

Asked 2 years ago, Updated 2 years ago, 45 views

Migrating projects created with Xcode4 to Xcode6.

Then, the nib file says "View is clipping it content" warning(?).
The show the issue navigator displays a blank "!" in a gray circle.

!Clipped Content
  View is clipping its content

Clicking on the problem part opens the nib file and leaves NSTextField selected.
Looking at the screen, the NSTextField in particular does not run out in the middle.

I don't think there's any actual damage, but I'm very concerned, so please let me know if anyone knows.

xcode

2022-09-30 17:39

2 Answers

I just put NSTextField in the new project and set up a longer placeholder text to reproduce it.

In particular, the NSTextField is not running out in the middle.

I think the Interface Builder calculates the necessary margins for readability, so I don't think it's always OK if you see all the text.

You can run Editor > Size to Fit Content to match the minimum size calculated by IB.

I understand that you are migrating an old project, so I imagine that the changes in the system font may have affected you.


2022-09-30 17:39

Why don't you turn off Constrains for that object and reconfigure it?


2022-09-30 17:39

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.