Suppress constraint and layout warnings in Xcode 5 - xcode

I'm trying to have custom constraints for objects in my storyboard but I get a bunch of warnings that say
Misplaced View Frame for "Some object" will be different at run time.
or
Ambiguous Layout: Width and horizontal position are ambiguous for "Some object"
The problems is that if I let Xcode resolve them it will mess up the custom constraints I've set up. The recommended constrains make the layout look bizarre. So how can I suppress these warnings because I'm trying to do something very customized?

Ok guys I've solved the problem. I was pretty new to autolayout so it was very frustrating trying to learn it by trial and error.
I solved it by reading this awesome autolayout Xcode 5 tutorial and adding the necessary constraints.
If anyone else is having problems with constraints I can't reccomend the tutorial enough.

If you'd like to disable storyboard warnings altogether, go to your project build settings and set "Interface Builder Storyboard Compiler - Options" -> "Show Warnings" to "No."

Related

Can't see launchscreen.storyboard in Xcode13

I've been searching for an hour and can't find the answer.
I can't seem to "activate" see the launchscreen.storyboard option in my Xcode13 project.
I attach a screenshot of what I'm seeing.
Xcode13 not Showing launchscreen.storyboard
You are right, you are not able to see LaunchScreen.storyboard in your XCode13 project. It's due to following reason...
You might selected SwiftUI option for your development: Here if it's correct then please let me update you:
SwiftUI came with lot's of surprising updates for iOS eco-system applications. And this is one of the update from SwiftUI.
Now-onwards, we not need to deal with storyboards anymore. Yes absolutely correct. Now just two line of .plist file creates Storyboard for us. Please have a look how you can achieve it.
Apple has provided a new Key in the info.plist to help you create a basic LaunchScreen.
Please go though following examples :
https://www.avanderlee.com/xcode/launch-screen/
https://danielbernal.co/creating-a-launch-screen-with-swift-ui/
That's it. How cool is it? Hope you now understood it :-)

NSPredicateEditor row templates not configurable in interface builder

I'm creating an assistant sheet in my storyboard in interface builder. The viewController contains an NSPredicateEditor and is connected to a property of the viewController using cocoa bindings.
However, I'm not able to properly configure the row templates. When I uncheck one of the predicate operators, I'm not able to re-enable them, nor I'm able to use any of the other provided operators.
Doesn't Xcode support NSPredicateEditor anymore, or am I doing anything wrong here? Just to be clear, I'm not having any code jet.
This is a bug in Xcode. I tried this with and without storyboards and had to force quit Xcode in both cases while configuring the binding. Close and open the project and try to modify the row template before doing anything else.

Storyboard issue with Xcode 6 and 7

Why my Main Storyboard appears like shown at Above? I made a copy of the project but now both of them have the same problem with the storyboard! I can run the app using the simulator and it works fine, but I can't see any labels or the buttons.
The problem is with your device layout....
Actually it makes on other layout like wAny hAny and now you show it on other layouts like wCompact hRegular....thats why the problem occurs...
Here is the visual site of it....
To prevent this type of things...you need to give constraints to your objects..after making correct constraints, the size classes won't matter that much except adaptive layout
Its because of Auto Layout Stuff. Set proper auto layout to you label object.
For eg.
Set Leading,Trailing,Top & Bottom layout to your label & then run your application. You will be able to see it on your screen.

Springs and struts or autosizing

-RE-EDIT-
An edit was just approved on this post as it "fixed grammer[sic] and clarified the question".
In actuality, it made both worse so I've changed it back.
-EDIT-
I have a storyboard layout like this:
If I use auto layout, I get this in the simulator:
If I switch it off, and use this setting:
I get this:
Which is as close to the desired layout as I could manage with trial and error.
Anyone offer any tips on how how set it so it matches the storyboard?

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?
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.
Change scaling according to your requirement. It will solve it.
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.
I had the same problem and I finally ended up resizing the image because it was so annoying.
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.
For Xcode 10.2.1 what solved my problem was to choose Position Below, on Interface Builder, as shown in these pictures, under Show the Attributes inspector tab:

Resources