Xcode 7 UITextView weird behavior failing view loading - crash

According to my observation, in XCode 7, if you put a UITextView in storyboard, and if the default text is less than 10 characters, the view controller won't load, and XCode throws no exception either - the app just hangs there.
I found it while migrating one of my XCode 6 project to XCode 7, and spent a lot of time to get there. I also started a clean slate project to confirm this behavior, and hope to put here to see if anybody else can confirm this?

I have seen this same thing, and was going to submit a question before I found this but I do not have the required reputation points to comment on the above question. This most definitely worked on xcode 6.4 with iOS 8 and is a new bug with xcode 7 as well as 7.0.1. This is an issue with both the simulator as well as on device.
iOS bug 22983873 submitted.

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 9 sendSubviewToBack bug

The sendSubviewToBack method on a tableView doesn't seem to work in Xcode 9.
The concerned view which needs to be sent to back is still displayed at the top of the edge. That's kind of strange.
Is it a bug on the simulator ?
Does anyone have the same issue ?

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.

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?