Use old AutoLayout in new XCode Projects? [duplicate] - iphone

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Remove autolayout (constraints) in Interface Builder
While the answer and final question are the same, the rest of the questions are completely different and the questions that appeared when I searched were unrelated to either question.
In my app, I am trying to set the autoLayout to setup my view properly for iPhone 4 screen size versus the iPhone 5 screensize. With the kind of layout I am dealing with, I really don't need the power provided by the new constraints system and it would be much easier to use the old system. I know this is possible because the older xib files in my project use the old system.
My question is: How do I use the old system in new xib files?

Open your xib file in Xcode, open the right-side pane, select the 1st tab in it, and unselect the "Use auto layout" checkbox.

Related

Black screen on viewController in IB, Xcode 12.4 [duplicate]

This question already has answers here:
Xcode 10 storyboard UI components are not visible and painfully slow?
(7 answers)
Closed 2 years ago.
I'm updated Xcode to version 12.4 (12D4e), MacOS 10.15.7, open my project, and see it:
All elements lost labels, have black background (don't change from IB) and blue borders. If i add new element on viewController - i get same thing.
In Simulator and real iPhone all works fine, but in IB - that problem.
Clean build folder, restart Xcode and MacOS not working.
Does anyone know how to fix it? Thx
UPDATE, with solution this problem:
I'm rolled back last commit in project and problem disappeared. Maybe, that happens, because i'm used in last commit custom class with #IBDesignable properties and delete him later, before commit on Github and update Xcode. I found similar problem and answer, on this link https://stackoverflow.com/a/56121110/13110274
Now all works correctly
Have you tried to select and deselect bound rectangles from "Adjust Editor options" in your storyboard?
Also, it seems your storyboard overstuffed. I recommend you separate it into few views.

Eclipse(Juno) missing and mixing source when scrolling [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Moving and vanishing lines of code; trouble with Eclipse's XML Editor
I have dev enviroment setup for Android development.
Problem arises when scrolling. Source code starts to appear with missing parts (like scroll event didn't correctly refresh view). When I select text, it restores it and after deselecting it becomes missing again.
I have dual monitors on win7, but this happens no matter dual display or single display.
Any ideas?
Tnx in advance.
This problem could potentially be solved by following the steps in this answer : Moving and vanishing lines of code; trouble with Eclipse's XML Editor
In short "Automatically format the XML edited by the visual layout editor" might be the source of the problem.

How do I configure my application icon so that it doesn't appear as a standard iPhone button? [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
How to disable highlighting of the app icon?
Hi all.
In each of my apps, the icon on the iPhone screen gets automatically converted into one of Apple's shiny buttons. I am noticing that some apps have managed to either (a) turned off the shiny appearance (such as Netflix) and/or (b) created an icon set in a transparent background so the image appears to be three dimensional and again, not set in the default shiny button
I have looked through the build settings, but cannot see how to configure. Any ideas?
Thanks.
Please include the below key into your info.plist file.
"icon already includes gloss effects" and make check checkbox as marked.
So, your app icon will be as it is.
Do the following steps.
Open your app's Info.plist file.
Add a new row.
Select the key - Icon already includes gloss effects.
Set YES as the value for that key.

How to remove the "white reflection" on the application icon? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to disable highlighting of the app icon?
Hi this is an iPhone objective C question.
When I set the icon file for the app, say, icon.png. When it is shown on the phone, a white reflection effect is automatically added on the icon.png
Is there any way to remove te reflection effect? Cause I can see that there are apps without the white reflection effect on the icons
Open your Info.plist file, can also be named ProjectName-Info.plist, and add a new line. The Key-column is a drop down list, click it and scroll through a quite large set of keys in human readable form that are possible to set.
The one you are looking for is called "Icon already includes gloss and bevel effects", that is the human readable form. Writing UIPrerenderedIcon, also works.
Adding this flag will also disable the automatic addition of gloss and bevel in Tunes Store, and on the App Store.
In Xcode 4.3.2 you might also need to define the icons as pre-rendered.
Click on your project on the left, select your target, and under the Summary tab you'll see the App Icons, along with a "Prerendered"checkbox. Check this box and rerun your app.
If the icon hasnt changed yet, you might also need to delete and reinstall (rerun) the app on your device, or perhaps even restart the device, before the new icon is used.
In your info.plist file, add a key called UIPrerenderedIcon and set its value to true.
This will prevent the sdk from automatically adding the glossy shine to your icon

Xcode documentation links behave crazy [duplicate]

This question already has answers here:
Xcode Developer Documentation Link Hover Jumps To Top
(2 answers)
Closed 4 years ago.
The links in Xcode documentation, that mean the methods in the "Tasks" for example,
when i only put the mouse on the links, then the page go up.
What happen to Xcode?
I've seen this on and off as well in the previous version of Xcode.
I haven't seen the problem in Xcode 3.2.1.
This is a duplicate of question 1288900.
It drives me crazy, too.
I found a simple work-around that hopefully works for you. Use the mouse and select some of the text on the page somewhere. That's it. For some reason, hovering over the links no longer makes the page snap to the top.