Xcode stupid warning: View is clipping its content

14,228

Solution 1

I had a similar problem with a gray warning.

"Warning: Clipped Content. View is clipping its content in XXXX.xib"

I got rid of the warning by right clicking on XXXX.xib > Open As > Source Code.

After building again in xcode the warning was gone.

Solution 2

enter image description here

Change scaling according to your requirement. It will solve it.

Solution 3

as far as i know you can't suppress specific xib notices, but you can disable them in general. in project->settings (or target->settings if you have multiple targets and only want to do it for one/some), there is the "Interface Builder XIB Compiler - Options" section which includes "Show Notices". if you set this to No then you should stop seeing this message. of course, it may mean you miss out on other messages.

Solution 4

I had the same problem and I finally ended up resizing the image because it was so annoying.

Solution 5

Had the same problem. Nothing helps, but add the complaining NSButton again, same wires and bindings and image in same size (scaling down), problem was gone.

Share:
14,228
Oneiros
Author by

Oneiros

I'm an Italian Programmer and Software Engineer. I love C#, Java, C++, Gaming and Virtual Reality Development

Updated on June 06, 2022

Comments

  • Oneiros
    Oneiros about 2 years


    I get this stupid warning in Xcode 4

    Clipped Content
    View is clipping its content
    

    if I create an unbordered bevel button with an image bigger then the button itself.
    Why? How can i suppress it?