守望者--AIR技术交流

标题: air for ios 移植经验-配置文件的使用。 [打印本页]

作者: 破晓    时间: 2015-1-6 15:33
标题: air for ios 移植经验-配置文件的使用。
下面给是我知道的一些配置文件标签:
  1. <?xml version=”1.0″ encoding=”utf-8″ standalone=”no”?>
  2. <application xmlns=”http://ns.adobe.com/air/application/3.1″>

  3. <!– 苹果应用的id –>
  4. <id>com.smallpeak.Maplestory</id>

  5. <!– 应用程序的文件夹名称–>
  6. <filename>Maplestory</filename>

  7. <!– 应用显示在ios上的名称 –>
  8. <name>Maplestory</name>

  9. <!– 应用程序的版本–>
  10. <versionNumber>1.0</versionNumber>

  11. <!–版本标签–>
  12. <!– <versionLabel></versionLabel> –>

  13. <!– 应用的描述–>
  14. <!– <description></description> –>

  15. <!– 版权 –>
  16. <!– <copyright></copyright> –>

  17. <!– 应用程序的初始化窗口设置–>
  18. <initialWindow>
  19. <!– 程序的主文件 –>
  20. <content>[此值将由 Flash Builder 在输出 app.xml 中覆盖]</content>

  21. <!– 程序的方向  “portrait” or “landscape” 可以设置成垂直 或者横屏>

  22. <aspectRatio>landscape</aspectRatio>

  23. <!– 程序是否自动转向 –>

  24. <!– <autoOrients>false</autoOrients> –>

  25. <!– 全屏设置 –>

  26. <!– <fullScreen>true</fullScreen> –>

  27. <!– 程序的渲染模式 cpu, gpu, or direct>

  28. <renderMode>gpu</renderMode>
  29. <!–窗口的可见性–>
  30. <visible>true</visible>
  31. </initialWindow>
  32. <!– 应用程序的图标设置–>
  33. <icon>
  34. <image16x16></image16x16>
  35. <image32x32></image32x32>
  36. <image36x36></image36x36>
  37. <image48x48></image48x48>
  38. <image57x57></image57x57>
  39. <image72x72></image72x72>
  40. <image114x114></image114x114>
  41. <image128x128></image128x128>
  42. </icon>
  43. <!– iOS specific capabilities –>
  44. <!– <iPhone> –>
  45. <!– 应用程序的普通设置 –>
  46. <!– <InfoAdditions>
  47. <![CDATA[
  48. <key>UIDeviceFamily</key>//应用程序支持哪些设备
  49. <array>
  50. <string>1</string>//1为iphone系列
  51. <string>2</string>//2为ipad系列
  52. </array>
  53. <key>UIStatusBarStyle</key>
  54. <string>UIStatusBarStyleBlackOpaque</string>
  55. <key>UIRequiresPersistentWiFi</key>//需要持久的wifi网路
  56. <string>YES</string>// YES 或者 NO
  57. ]]>
  58. </InfoAdditions> –>
  59. <!–这个是设置应用程序的系统权限,但是只能在mac机器上编译。这里不做解释 –>
  60. <!– <Entitlements>
  61. <![CDATA[
  62. <key>keychain-access-groups</key>
  63. <array>
  64. <string></string>
  65. <string></string>
  66. </array>
  67. ]]>
  68. </Entitlements> –>
  69. <!– 应用程序分辨率形式 “standard” or “high”). 普通 高清–>
  70. <!– <requestedDisplayResolution></requestedDisplayResolution> –>
  71. </application>
复制代码
本文来自:http://www.badyoo.com/111.html





欢迎光临 守望者--AIR技术交流 (http://www.airmyth.com/)