Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Issue with iPad app in Landscape mode

$
0
0

Hey, I found a solution. I don't know the root cause of why this issue occurred, but this hack will solve it.

It has to do with the splash screen plugin, in CDVViewController+SplashScreen.m.

- (BOOL)enabledAutorotation
{
NSNumber *number = (NSNumber *)objc_getAssociatedObject(self, @selector(enabledAutorotation));
return [number boolValue];
}

Debugging this, number is always nil. Why? I have no idea...but if I change this to:

- (BOOL)enabledAutorotation
{
//NSNumber *number = (NSNumber *)objc_getAssociatedObject(self, @selector(enabledAutorotation));
NSNumber *number = @1;
return [number boolValue];
}

It works beautifully. Again, take this with a grain of salt, I don't know what unintended consequences it will have, but I haven't found any so far.


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>