lock the screen in landscape postion
Monkey Targets Forums/iOS/lock the screen in landscape postion
| ||
hi all, question: is there a way to lock the screen of an iphone or ipad in the "landscape position" (which means that the width is longer than the height) ? thanks PIt |
| ||
You have to do this in the XCode porject. Back in the days, when I was developing for IOS, there was a setting in the xcode project that needed to be set to define which orientations are allowed. |
| ||
Thanks Mike, I will have a look ! other question: is it possible to run the program (so in the ios silmulator) from Monkey (Ted) like in glfw or html5 ? for the moment, I build with Ted, then I launch Xcode in order to test my program with the simulator. other way ? Pit |
| ||
Hi Mike, I found the parameters and it works ! thanks again !!! Pit |
| ||
Cool. About the simulator.... I can't get it to start my app automatically either. |
| ||
pit, as far as I know there's no way to run from Monkey into the simulator. Xcode does have a cmd line interface, so maybe it could be hooked into the iOS target? But that might be a more advanced topic. https://developer.apple.com/library/ios/technotes/tn2339/_index.html Edit - also this link talks about running the sim from cmd: http://stackoverflow.com/questions/26031601/xcode-6-launch-simulator-from-command-line A possibly easier solution would be to add the Ted/Trans build step as a custom build phase in the Xcode project so you could edit your .monkey files in Xcode and hit Run, and also be able to debug. The downside is Xcode doesn't understand Monkey source syntax. |
| ||
thanks nullterm ! so, I will continue to run my project from Xcode. is it the same for Android ? Not possible to run the simulator directly from Ted ? Pit |
| ||
AFAIK, Ted only tries to install/run on Android device, not sim. But you could probably get the APK file into the simulator manually, if you really needed to. |