soumya
soumya

Reputation: 3811

Orientation Issue with iOS 8

I have developed an iPad app for landscape orientation using freeform layout in one of

the ViewControllers.

It is working fine with iOS 7, but When I'm running the app using Xcode 6, the controls in xib position varies.

I have Tried to modify auto layout check box, but no luck. Can any one help me to solve this issue.

Thanks in advance

Upvotes: 0

Views: 106

Answers (1)

Aniket Bochare
Aniket Bochare

Reputation: 427

Add the following code in the - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions method:

self.window.rootViewController = self.viewController;

[self.window makeKeyAndVisible];

[self.window setFrame:[[UIScreen mainScreen] bounds]];

Upvotes: 1

Related Questions