I am making an application for IOS 8 platform using cordova & Xcode 6. I installed a cordova plugin called [org.apache.cordova.dialogs]. My app is meant to be work in portrait mode. Now the problem that I am facing is, When the device is rotated, the app stays as portrait itself , but the alertview rotates. It works fine with IOS 7. Is there a way to solve this issue. Any help is appreciated.
Thanks
You need to set
<preference name="Orientation" value="portrait" />
in your config.xml and that should sort it, that will tell the OS to not allow any part of the app to rotate to landscape.
Related
When I launch the app through the Xcode in my Iphone 6s, the app is being launched zoomed. The specific app is already on the app store with all the assets and launch images set correctly and everything was working fine. All the resolutions were correct for all IOS devices. But now, after I launched it again through the xcode as I want to make an update the app is being launched zoomed. Any ideas why this is happening? I managed to test it only in Iphone 6s.
Happened to me when I gave a wrong resolution to the splash image (750x1134 instead of 750x1334). I guess Xcode assumes you want to use the app with that resolution overall and adapts accordingly. Was fixed when I gave the correct resolution splash image.
At least I didn't find a solution and what caused this issue, but I used the storyboard file as a launch screen which was much easier to develop.
I´ve just created a new iPhone only app with Xcode 6.0.1 -- when I run the app in the iPad simulator the app looks just like a normal iPad app (it´s an iPhone only app) --> I want that the app shows the upscaled iPhone version...
Any suggestions how to solve this issue?
BTW: I know that this issue only occurs when the LaunchScreen.xib is selected as Launch Screen File
Thank you in advance!
I experienced the same problem.
I added following row to the info.plist file after reading this link http://openradar.io/18371031:
Main storyboard file base name (iPhone) --> Main
It is now working iPhone only mode in my case.
Cheers,
Recai
setting UILaunchStoryboardName~iphone instead of UILaunchStoryboardName in Info.plist helps me
Some wierd stuff is going on in a app that i recently took over development of. For some reason, when i launch the app with simulator iPhone retina (4-inch) the app launches like this:
In the story board, the views look correct when i change to iPhone5.
I just dragged out a clean controller and set it as the initial one, so no messed up code in the controllers should cause this.
What am I missing?!
Thanks
You are missing the fact that the app is not optimized for iPhone 5. It is as easy as setting the correct launch image - Default-568h#2x.png
You need to add a Retina 4 launch image. Default-568h#2x.png is required to run at native resolution on retina 4 devices.
I have developed an iPhone app using Phonegap. My app supports only landscape orientation. One of my html page content is not appearing properly in landscape mode.
I have added <preference name="orientation" value="landscape"> in config.xml file. Still the issue is not solved.
How can I solve this issue?
Using the latest SDK from Apple, I noticed that while running on the iPhone works fine, the iPad version of my application doesn't "accept clicks" on any view/widget that is outside the "bounds" of the standard iPhone screen.
Any idea?
Thanks,
Reuven
Vanilla iPhone apps will only accept touches within that little bounds, to reproduce that fact that the iPhone resolution is only 320×480.
To fix it, upgrade your app for iPad.
(Also, make sure you don't hard-code any numbers. For example, use [UIScreen mainScreen].bounds.)
OK - found it...
All I needed to do was to open MainWindow.xib in Interface Bulder, and in the Window Attributeds palette, to check "Full Screen at Launch".