Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode stupid warning: View is clipping its content


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?

like image 501
Oneiros Avatar asked Dec 21 '11 22:12

Oneiros


3 Answers

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.

like image 148
hailuodev Avatar answered Nov 15 '22 07:11

hailuodev


enter image description here

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

like image 15
Solid Soft Avatar answered Nov 15 '22 07:11

Solid Soft


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.

like image 2
Mike K Avatar answered Nov 15 '22 05:11

Mike K