Open Offek opened 6 years ago
Hi,
try to run this command
-(void)disable_rotation {
dispatch_async(dispatch_get_main_queue(), ^{
int counter = 0;
while([UIDevice currentDevice].generatesDeviceOrientationNotifications)
{
[self disable_rotation];
counter++;
if(counter>30)
break;
}
});
}
Hello,
I'm trying to disable the autorotation of the camera aspect ratio, but it seems impossible. I tried disabling interfaceOrientation NSNotifications and app orientations but nothing seemed to work. Could you please help me figure it out?
Thanks in advance.