Xcode 6 custom launch screen - xcode6

I am trying to make a custom launch screen based Xcode 6 new feature following the content given here. I don't understand how can I manage orientation of launch screen on iPad. My launch screen contains a horizontal rectangular image in the centre. Using size classes I can set different constraints and views for iPhone in landscape or portrait mode. But unable to do the same for iPad. Also how can I lock the orientation of Launch screen when creating a launch screen using the above method ?

You can not do this for the iPad because both orientations fall under the regular width and regular height size class.

Related

Xcode 6 ViewController content is smaller than the simulator screen

i'm developing app for both IOS7 & IOS8, and using storyBoard with size classes enabled.
app works fine in all simulators from iPhone 4s IOS7 to iPhone 6+
but the viewController is smaller than the screen in iPhone 5 with iOS7
app supports different orientations, i tried and canceled orientations but didn't work. i rested the simulator content, didn't work. I tried to change the initial view controller, didn't work. I cleaned the project, didn't work
To run your application in fullscreen in iPhone5 you must provide Launch Image for iPhone5 with resolution 640x1136.
If you are not including Launch Image of the size iPhone5 require then app will run in the centre of the screen, showing black area at top and bottom.
You can also refer here for more information.
Make sure there is a Default-568#2x.png in the supporting files

Universal Storyboard Sizing Popover for iPhone and iPad

I am using a universal storyboard and sizing to handle both the iPhone and iPad. This has been working well except when it comes to popovers. That is a screen that will be a popover on an iPad but a modal screen on the iPhone. I am finding that the only size class that will impact layout for both is wAny hAny I want to use Final Values for each so that the behavior will be as I want for each device. However, unlike regular screens this type seems to only respond to wAny hAnyfor both iPhone and iPad. Should I not be able to set each separately to accommodate the different devices?
Since iOS 8, you don't need to handle popovers separately on different size classes. They are handled automatically by a UIPresentationController.
If the modalpresentationStyle property on the UIViewController is set to UIModalPresentationStyle.Popover, UIKit will present it, using a UIPopoverPresentationController, as a popover on a regular size class (iPad) and modally on the compact class (iPhone).
If you're using storyboards you can control it on the segue and setting the segue attribute as Present As Popver:

Orientation on ios 8

I have 6 tabs in my iPad application, all of the controllers have a single baseViewController. In my first tab there is a collection view and different layouts for landscape and portrait mode. When I launch the application and rotate for the first time, all tabs' controllers are loaded simultaneously. Every time I rotate the device it calls orientation methods for all controllers. Before iOS 8 everything was working fine but this issue occurs only in iOS 8.
Can anyone suggest a solution?

IOS reorganize graphics on rotation

I'm making an iPad application with 19 buttons which are alle graphics. They are aligned next to and underneath eatchother, like in a grid. In portrait mode they are displayed nicely (because that's how I've set them) but I don't know what settings I need to choose for landscape mode.
When the device turns to landscape I've got room for 4 columns in stead of 3 in portrait for instance.
How can I make the app automatically adjust they layout of the buttons when rotated?
Thanks
In iOS5.1 or older, you will need to do this in code. In iOS6, its possible you can use a UICollectionView - not sure haven't played with it.

how to change mainwindow.xib's orientation to landscape? [duplicate]

I appreciate I'm probably missing something basic here, but...
My iPad app will only support landscape mode, and has a MainWindow.xib Window that I'd like to work on in landscape mode in XCode 4, however the pull-down menu to change this (Simulated Metrics -> Orientation) is always grayed out.
I notice that Views can be rotated just fine, it's only Windows that can't be rotated in XCode 4 using this setting.
Is there a workaround for this, or do I have to put a View on top of the MainWindow in order to rotate it?
I think it's because apps always starts up in portrait and then rotates to appropriate oriantations. From the UIViewController docs:
Note: At launch time, applications should always set up their
interface in a portrait orientation. After the
application:didFinishLaunchingWithOptions: method returns, the
application uses the view controller rotation mechanism described
above to rotate the views to the appropriate orientation prior to
showing the window.
So you'll need the UIViewController magic for the simulated metrics to make any sense. If you used the "Window-based application" template as a starting point for your project try the "View-based application" template instead.