感谢Robovm's gitter的Demyan Kimitsa
我有一个标题中提到的问题。
据此answer它在ViewDidAppear的ViewController中执行。但是,如果我想在游戏结束后改变旋转角度,那么如何将这段代码导入到Java中以及在哪里调用它。] 我试图做这样的事情:
long landscapeOrientation = UIInterfaceOrientation.LandscapeLeft.value(); UIDevice.getCurrentDevice().getKeyValueCoder().setValue("orientation", landscapeOrientation);
由于我需要NSObject而被卡住...
我有一个标题中提到的问题。根据此答案,它在ViewDidAppear的ViewController中执行。但是如何将这段代码导入到Java中,以及如果我想在哪里调用它,... ...>
感谢Robovm's gitter的Demyan Kimitsa
long landscapeOrientation = UIInterfaceOrientation.LandscapeLeft.value();
UIDevice.getCurrentDevice().getKeyValueCoder().setValue("orientation", NSNumber.valueOf((int) landscapeOrientation));
感谢Robovm's gitter的Demyan Kimitsa