Will Auto Layout Be Required on iOS 13? - objective-c

I am maintaining an older Objective-C app which does not use auto layout in its storyboards. I noticed that the "Use Auto Layout" checkbox on the file inspector has been removed when working in iOS13 (Using Xcode 11 beta 6). Does this mean I need to update all of the existing storyboards to use auto layout and constraints?
The app still runs without changes to the storyboards, but warnings and errors such as: missing constraints, ambiguous content size, and localization issues now appear when viewing many view controllers.

auto layout is going to be pushed a lot in Xcode 11, I've noticed that myself. however, you can try using xib files instead and use basic constraints and use "add missing constraints" in the all new section.

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.

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

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.

How to take advantage of Xcode 8 new live previews

I can't find any documentation of how to get interface builder to render UI as it will be at runtime (a new feature as shown here. Does anyone know how?
This functionality comes for free, without any need to enable it. Rendering iOS content in the Interface Builder canvas now includes effects such as blurs and vibrancy.
If you have custom views, using IBDesignable and IBInspectable (introduced in Xcode 6) are a great way to enable design-time rendering inside IB. Here are some starting points:
http://help.apple.com/xcode/mac/8.0/#/devf60c1c514
http://nshipster.com/ibinspectable-ibdesignable/

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 programatically get a large iPad window on startup with MonoTouch?

I have the latest Ipad compatible Monotouch library. I have upgraded my projects to use 3.2 SDK and MonoTouch 1.9 Alpha.
The docs say you need to change the Window in your XIB for the large iPad Window. I don't use XIB. I build my interface from code by constructing the object programatically. What should I be doing to get the large iPad style Window?
Nothing (I assume).
[UIScreen mainScreen].bounds (and its equivalent on MonoTouch) will be 768x1024 in iPad mode and 320x480 in iPhone mode. If your windows and views do not have any hard-coded values they should adopt to the new size naturally.
After further investigation, I found that I needed to add an entry into the info.plist file like so:
Information Property List
UIDeviceFamily
item 0 2
Once this is present the dynamic Window class that I create is the full iPad screen size.
I think it is basically telling the system that my app supports that device. Will have to find our more in the docs.