Xcode 8.1 Still has Autolayout issue in Storyboard - objective-c

Storyboard getting issues in autolayouts, In Xcode 7 there was no issues in Autolayouts, when coming to Xcode 8.1 when i view the Storyboard in iPhone SE it looks like this !
When i View the same VC in iPhone 7 it looks like this ! with different layouts and with errors, but it works fine when i run in all sizes of simulators.
How to solve this in Storyboard?

Related

ios app lags and freezing iphone 6s/7/8 in iOS 13

We have an iOS native app developed with Objective C and using auto-layout with Storyboard for UIs.
It is working fine in iOS 12.4.1 in all devices and it is not
working now in the iOS 13 on iPhone 6s/7/8 only.
Only this screen size has the issue.
Other than that all other iphone screens are supporting upto to
iPhone 11 Pro Max.
And this issue is not there in the iPhone 6s/7/8 simulators. Only in
the real device.
When it is installed on iPhone 7 and run the app it lags very much
and freeze the app occasionally, I have to close it, But the iphone is also gets laggy.
I am not getting any errors.
I thought this is layout issue, so I've Removed constraints of all first showing screens and re-added the constraints. And tried to debug with XCode Instruments to test performance but that didnt show me any issue also(I am not much familiar with using XCode Instruments).
I am stuck with this issue for several days.
And I couldnt find anyone having the same issue.
I appreciate any help regarding this.
What could cause this?
I was facing a similar issue and found out that SearchDisplayController which is deprecated, was being used in the code and storyboard as well. That was causing my app to crash on real device, but not on simulator with iOS 13.1.2. After removing the SearchDisplayController, things worked fine for me.

Xcode 6.1 - Map View appears blank in iOS7 simulator or iPhone 4

Since I last updated to Xcode 6.1 and Yosemite, the map views in my app started to appear blank either in ios7.1 simulator or my iPhone4 (iOS7.1).
I could replicate the situation by creating a brand new single view application with just a MKMapView and although it appears correctly in iOS8 simulators, in the iOS7.1 simulators or my iPhone4 it shows only a blank screen. The iOS Deployment Target is set to iOS 7.1.
I tested this simple app in a friend's Mac with Mavericks but the same situation occurs.
Is this some bug of Xcode 6.1 or SDK, or do I have to add something to run maps on iOS7?
I faced the same problem. To fix it, you have to disable Size Classes. Go to Storyboard and in the right sidebar, you should see a check box saying 'Use Size Classes' under 'Interface builder document'. Untick it and you should see the map again.
Read this to find out why this happens:
iOS MkMapView blank after moving to Xcode 6

Xcode 6 Landscape Orientation issue

I am trying to update my project to iOS 8.0. But i am getting landscape orientation problem in my app. Searched for more options but couldnt found any.
[Environment]
Xcode 6.1
simulator: iPad2
ipad air

iOS app with iphone target only (non-universal) renders fine on ipad iOS7 but not on ipad iOS8

When I run my targeted iphone app on an ipad with iOS7, it renders in iphone mode and this is exactly what I want. In fact, when I print the size of the window bounds, it correctly prints out 320 x 480. However, when I run the same app on an ipad with iOS8, the app goes into full screen mode as the window bounds are now 1024 x 768.
Do you know how I can restrict the iOS8 ipad to render the app as an iphone only app and not a full screen ipad app?
NOTE: I did my testing on the same iPad device before and after the upgrade from iOS7 to iOS8. I'm also consistently able to repro this with the ipad simulators
This might be caused from a known bug in XCODE-6 that is fixed in XCODE-6.1 beta. If you are using the storyboard launch file, the iOS 8 iPad will not be scaled from iPhone mode, but will be treated as an actual iPad. To fix the bug, use static launch images by hitting use asset catalog on the following screen in the target options, general tab:
After this, make sure to have your static launch images uploaded to the .xcassets, or update to xcode 6.1 beta to fix the issue.

UISwitch looks strange on IOS5 simulator and device

When i add UISwitch in IB it looks as it should. But when i run my app in 5.0 simulator or on 5.0 device, i get this:
If i run it on ios4 simulator everything looks ok. This a large project that has three20 included and was transformed to ARC with XCode.
What could be wrong?
What you get on iOS 5 is the new Switch Control.