Hi all,
Got a problem with iOS app background on horizontal position: it applies vertical background instead.
I check the device position like this:
UIInterfaceOrientation orientation = [[UIApplicationsharedApplication] statusBarOrientation];
BOOL inLandscape = UIDeviceOrientationIsLandscape(orientation);
if (inLandscape == true)
{
self.view.backgroundColor = [UIColorcolorWithPatternImage:[UIImageimageNamed:BX_SCREEN_BG_IMAGE_LAND_IPAD]];
}
else
{
self.view.backgroundColor = [UIColorcolorWithPatternImage:[UIImageimageNamed:BX_SCREEN_BG_IMAGE_IPAD]];
}
but if I put this into - (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation it checks only on device rotation event. When clicking "Back" or "Cancel" button on one of the internal screens after changing the device position it doesn't work and applies the background incorrectly.
Does anyone have solved this issue?