如何锁定 OpenPlug (/flex) 中的方向?
我正在使用 OpenPlug 用 Flex 编写程序。我在锁定设备方向时遇到困难。从项目属性中,我可以找到 OpenPlug Studio 目标设备及其选项。对于 iOS,有支持(或不支持)不同方向的选项,而对于 Android / Symbian 则没有。
即使我选择仅支持 iOS 的“纵向”方向,模拟器屏幕也不会锁定。我无法在真实设备中尝试它,因为我无法生成 XCode。还有一个问题。我选择了生成 XCode,选择了 Apple - iPhone 作为设备,并且选择了目标文件夹。当我单击构建按钮时,没有任何反应..?
任何有关任一问题的信息将不胜感激! :)
I'm writing program with Flex using OpenPlug. I'm having difficulties locking the devices orientation. From Project Properties I can find OpenPlug Studio Targeted Devices and their options. For iOS there is options to support (or not) different orientations and for Android / Symbian there is none.
Even if I select to support only "portrait" orientation with iOS, in emulator screen is not locked. I can't try it in real device, because I'm not able to generate XCode. There's another problem. I have selected to generate XCode, I've selected Apple - iPhone as device and I have selected target folder. When I click build-button, nothing happens..?
Any info regarding either one problem will be appreciated! :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不确定这是否仍然相关 - 在 OpenPlug Studio 中,右键单击该项目并选择“属性”。然后,您可以选择左侧的“OpenPlug Studio 目标设备”以获得设备列表。现在,单击右上角的“按平台编辑”按钮。这将为您提供可以进行的设置的列表。其中,有“iPhone支持横向左方向”、“iPhone支持横向纵向方向”等项目。设置这些应该可以完成锁定方向的工作。
Not shure if this is still relevant - in OpenPlug Studio, you right-click on the project and choose "Properties". You then choose "OpenPlug Studio targeted Devices" on the left side in order to get the list of devices. You now click the button "Edit by Platform" on the upper right corner. This will render you a list of settings you can make. Among others, there are items "iPhone Support Landscape Left Orientation", "iPhone Support Landscape Portrait Orientation" and so on. Setting these should do the job of locking the orientation.
我不知道 OpenPlug 是什么,但它看起来像一个 IDE,但我不确定。坦白说,这应该不重要。如果您有 Flex 项目,则应该有一个应用程序描述符文件(源目录下的 xml)。在此之下,应该有 2 个您应该感兴趣的标签:
I have no idea what OpenPlug is, but it looks like an IDE, but I'm not sure. Frankly, it shouldn't matter. If you have a Flex project, you should have an application descriptor file (an xml under the source directory). Under that, there should be an 2 tags that you should be interested in: