0

I am getting a very odd anomaly with iOS 8 where my screen is rendered 25% up and to the left... I check all the values coming from bounds etc and all seems correct. My project is based on the old EAGLview code, and I have tried using xib (which USED to work fine) and also tried generating the window myself and subsequent glview myself. I always get the same result. The screen is shifted 25% up to the left (along with the touch area). Its quite baffling. Anyone have any ideas on this?

swuth
  • 31
  • 8

1 Answers1

0

[UIScreen bounds] is now interface-oriented;

I was setting the bounds differently in iOS7 , but now something like this looks like working for me:

- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];

    _screenWidth = [UIScreen mainScreen].bounds.size.width;
    _screenHeight = [UIScreen mainScreen].bounds.size.height;

}

also have a look here if that does not solve the issue:

Is [UIScreen mainScreen].bounds.size becoming orientation-dependent in iOS8?

Community
  • 1
  • 1
Stone Alessandro
  • 359
  • 3
  • 14