Disabling Auto Layout removes all images on the storyboard - ios

Halfway through my project I realized that I shouldn't be using auto layout. The only problem is that when I disable it, I lose all of the images and such on my storyboard. Is there a way to keep all of the images and the IBOutlets/IBActions that I created, or will I have to do all of that over again?

Related

How to programmatically create Launch Screen through Xcode (without Xib assistance)

I've been trying to figure out how to code up a launch screen that is not in Xib form. Reason being, I cannot for the life of me figure out how to do a decent job with Auto layout and constraint building. Please do not suggest that I pursue that course of action.
I was thinking of implementing a custom UIViewController (with a Xib to hold just a reference to the view controller instance) that I could set with a black background and 5 UILabel subviews. That Xib will be used as the "Launch Screen File". I have the necessary methods to make sure the labels always resize properly given different device sizes.
However, is that even the right way to go about it? I'm really trying to refrain from just creating a Xib and using that, or drafting up an image in Photoshop or something like that.

How to convert Xib based project to Storyboard with auto layout

I'm going to get heat for posting this question that has probably been answered multiple times before, but I wanted to get a new understanding on how to incorporate Storyboards and auto layout into my app.
The whole thing is done, but I've used countless Xib files that don't even have a proper view layout to them. Everything related to image position and size is done through hard-coding CGRect(x,y,w,h) frames. I'm not using auto layout, and my Xib files are not populated with proper views (just temporary views to provide the IBOutlet connections).
What do I start with first? Auto layout or transfer everything to Storyboard? What documents/guides can I read to help me with this?
I'm using Xcode 7.1.2, and iOS 8.1.
All the Xibs needs to converted to Storyboards first, so that the entire app has all its Screen is reflected in the Storyboard.
Once this is done you should start implementing the Autolayout, by removing the hardcoding from the code and managing them via the StoryBoard scenes.

XCode 6 GUI Not Updating

I am using XCode 6 to make a simple calculator using Swift. Anyway, I compiled the code with the initial GUI and it works. However when I change the positioning of some buttons, it does not show up in the compiled app running on iOS simulator. Does anyone know what should be done?
Also, I've changed the code as well, and the code is updated. Ie, pressing button 1 will show 1 in the main textbox, but the interesting thing is the position of the button, which I have changed, still remains in the same position I set it to be initially.
How are you changing the positions of the buttons? If you're doing this by setting frames in code, and your original GUI is laid out in a storyboard, then you're probably fighting against auto layout.
Your storyboard layout will be driven by constraints, which determine the size and position of all the elements of your GUI. Setting a frame manually doesn't change these constraints, so the layout engine resets everything.
Either turn off auto layout (bad idea, since you now have to cope with every screen size manually) or move your buttons by adjusting your constraints.

Trouble resizing view in storyboard

I am having trouble resizing my view in XCode (5.1.1). I have a storyboard and one of my views I am not able to resize. It is a table view and I was able to resize it but once I set the transitions on the table views I am no longer able to resize it. I have even tried to delete all of the segues and I still am not able to. This seems to be a common problem I have. This is not the only view I am having trouble resizing. I also am not able to resize a view that has been copied and pasted.
I have tried checking and unchecking (Resize View from NIB), and I know how to resize the board (set it to freeform and change the size in the size inspector of the view). As I said, these have worked before but they seem to just stop working. I have also tried changing the simulated metrics. Is there something I am missing or doing that makes it stop working? I am trying to do this on the visual side, not coded, as this is for me to add content to the views.

iOS: How can I prevent a resized view from resetting itself?

I'm using ECSlidingViewController. When the app starts, it opens a scroll view which is resized dynamically, since it contains both labels and a table view. Both the table and the scroll view containing it are resized.
Everything works as intended when the view is first loaded. However, if I open and close the menu view, or if I use it to go to any view which resizes itself, the resizing does not work. Instead, it displays the scroll view as if it has the height assigned to it in the storyboard.
I'm completely lost as to why this happens, and would greatly appreciate help. I can post code as well, of course, but I don't know what code might help, since I guess that the error is on ECSlidingViewController's part.
Are you using auto layout? If so, whenever something else happens that triggers the application of the constraints, all the frames will be reset to the values dictated by those constraints. Try turning off auto layout and see if that fixes it. Refer to your auto layout settings.
Alternatively, if you want to keep auto layout, I'd generally suggest changing the frames by programmatically changing the constant values of the constraints. But, I'm not familiar with ECSlidingViewController, so I don't know if that's a reasonable option in this particular case.

Resources