View non-iOS 8 bottom

I am facing an issue with iOS 8 on iPad. Every time I start my app it starts in landscape mode but mu app is in portrait mode only. To solve this problem, I used the code provided on google.

self.window.rootViewController = self.navController;
[self.window makeKeyAndVisible];
//[self.window setFrame:[[UIScreen mainScreen] bounds]];

      

Which problem solved, but now I am facing another problem where my view shows the black part at the bottom.

If I uncomment the last line in the above code, my view runs smoothly without the black part, but another problem I am having is now my bottom part of the view is not closing.

My registration and login buttons and privacy policy are no longer available.

Thank you in advance

+3


source to share





All Articles