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

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.

Related

iOS Simulator "Inner" Resolution

I saw the resolution questions:
iOS simulator for iPhone 5- 1136 x 640 resolution
I have done
react-native run-ios --simulator 'iPad Pro (9.7 inch)'
I even went to "Hardware" menu and selected the device again.
My app launches in dimensions of tablet, however the contents within are not rightly sized, it is hugely zoomed. I fixed this accidentally before but I cannot figure it out now. Here is a screenshot of my situation:
It seems like you are running a zoomed in iPhone app (which is possible to do on iPad, so the simulator does what it's supposed to do). You need to set the app from iPhone to Universal in Xcode to tell it that your app is targeted for iPad as well.

WinObjC orientation issue

I'm trying to convert an iOS project to Windows 10, it compiles and links successfully, the binary starts, but the app is not well oriented: my app is in landscape on iPad, but on Windows 10 all the UI is rotated by 90°...
I've no idea on how to fix that.

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

How to check if an app is running in iPhone emulation mode on iPad

I'm creating a keyboard for iOS 8. I have two xib files. One for the iPad and one for the iPhone.
I load the appropriate xib file by checking UI_USER_INTERFACE_IDIOM.
The problem is for an app that is designed for an iPhone but runs in emulation mode on iPad, wrong xib file is loaded and the layout is full of problems.
How can I check if the app is an iPhone app but running in emulation mode on iPad?

Cocos Builder Landscalpe UI shows up Portrait in IOS 6.1 simulator

I have made UI using Cocos builder in landscape mode. UI appears in landscape mode when I run the project in iphoneOS 5.0 simulator. When I run the same xCode project, UI shows shows up in portrait when the device is actually in landscape mode. How can I fix this problem?
Simulator screenshot for OS 6.0:
Simulator screenshot for OS 5.0:
When we created our project, we decided to use Cocos Builder. More than week I tried to adjust it and to start using but as to me it became sad when I saw that default builder examples are shown crooked. I do not recommend you to use cocos builder.