XCode 8 - How to solve an Auto resizing issue on XCode version 8.0? - objective-c

I used XCode version 7.2.1 for my project. But I updated the XCode version 8.0 now. Though the scroll view is messed in view controllers of my project. Here I have used Resizing only not an Auto layout. I referred many forums. But can't able to find a solution for that. Here I have attached similar links to what I had tried.
Xcode 8 GM seed Storyboard layout issue
Layout issues after updating to Xcode 8
I have to update frame of everything in storyboard every time I start Xcode
What is the exact solution for Scroll view resizing issue in XCode version 8.0?

Its work for me
https://stackoverflow.com/a/39770664/6619234 you can try this...
after Save & Close don't open this xib/Storyboard....it is an temporary solution....till the apple fix it..

Apple just came out with XCode 8.2, which fixes this problem for me. I have been using XCode 7.3.1 for my interface design parallel to 8.1, but I can now use 8.2 without any problems.
The storyboard gets updated with widths and height of frames though, to accommodate the new 'View as:' functionality. Though it doesn't seem to affect running on device/simulator.
Curiously, the bugfix it is not noted in the XCode 8.2 release notes.

I was able to solve the same by selecting my xib files and then I selected my view in the xib after that I went to attribute inspector and changed the size, status bar, top bar and bottom bar as inferred and it worked but before that xocode pointed out I am missing 2x retina display file so I clicked the warning and it was added automatically.

I asked to Apple about this same issue, and they have sent the following message to my inbox:
Hello Raja,
Engineering has determined that your bug report (28489404) and will be closed.

Related

Upgrade project for iPhone X and iOS 11

I'm working on very old project which is written in objective-C and it's all views and controllers are written programatically. (There are not even XIBs, except some cells)
I've already open project in latest Xcode 9.3 and resolve all error and dependencies and compiled it successfully.
But now I want to upgrade the whole project to give support for iOS 11 and iPhone X layout, and I also want to add storyboards and remove all programatically controllers. It's also compatible for iPad and iPhone both.
Can anyone suggest me how to start it and what to keep in mind?
It's huge project so I'm bit confuse either would I make it or not. (I don't wanna introduce swift at the moment, first I'll update it for iPhone X layout and storyboards, then I'll think about swift too)
First of all start with creating UI on storyboard with autolayout.
Remove the resizing views conditions from the code.
Use size class to support both iPhone and iPad.
so basically first 3 steps will solve 70% of your issues.
My suggestion is don't move to the swift before doing all this.

IOS - Migrating storyboard to Xcode 8 resize

I used to have a story board in Xcode 7.3, today I started migrating to Xcode 8 by hand because I want to clean some stuff in this version.
The problem that I faced is that in the storyboard when I change the device type the content of the view controller scene is not adjusted to the phone.
This is an example:
The above is the same size as the storyboard in Xcode 7.3, actually Copy & Paste the View Controller Scene.
When I change the size to the next device I get this:
Now I have a space in the right. I'm using Auto Layout.
So I don't know what changed in this version or what do I need to do in order to make my storyboard fits on all iPhones sizes.
What I would need to see is if I change to a bigger phone then everything will auto fit on the new screen. Thats the way was working with Xcode 7.3.
Any advice?

iOS 8 - View is not resizing full screen

I have old code using the MainWindow.xib, below iOS 7 everything works fine but in iOS 8 its leaving some bottom area.
Attaching image -
Please suggest anyone, how can i fix this.
I had this problem while ago. Turned out I had deleted the launch screen.
To make it right, add launch screen back by going in general setting of your project and adding your launch xib there.
I hope this fix your problem.
I solved this by adding new Launchimages. Removed my old ones and created a "New Launch Image". Also take a look at your autoresizing in the xib file under the "Size Inspector".

Update old XCode Project with Size Classes

I'm having a bit of a problem while updating my old iOS applications. I have seen other threads where developers suggest I just need to enable "Use Auto Layout" and "Use Size Classes". I did that and updated the storyboard, but the application still appears blown out on iPhone 6 while testing, along with the keyboard.
Am I missing something or doing something wrong?
Thanks.
Do you have a correctly sized launch screen in your app bundle?

How do I remove a specific size class preview in Xcode 6?

In Xcode 6, I opened up the Preview so I could see how my storyboard would look on different devices. I can add devices to the preview. In fact, I can add the same device to the preview over and over. But how do I remove a device from the preview? I tried closing out of Xcode and re-opening it, but they are still there.
I don't know if I tried this in XCode 6.0 or not, but I'm on 6.1 now and I was able to remove the previewed device. Select the device (you can see a blue outline around the device when selected) in the Preview panel then press delete. That will remove it from the Preview panel.
Kurt Anderson's answer works from Xcode 6.1 all the way to the latest Version 8.2.1 (8C1002). I assume the same "select" then "delete" will work for the future Xcode as well.