2013-10-04 58 views
0

我有一個鈦合金項目,我正在努力。當我在Titanium Studio中選擇Run as> iPad模擬器時,它會以全屏模式與我的應用程序一起運行iPad模擬器。但是,當我查看構建文件夾時,我只能看到一個iphone文件夾。如果我運行該Xcode項目並定位iPad設備(硬件),則應用程序窗口很小,角落中的「x2」按鈕很小。爲什麼Titanium只在想要iPad應用程序時才構建iphone項目?

我已經查看了tiapp.xml文件並啓用/禁用target device="iphone",並與其他設置搞砸了,做了一個乾淨的構建等,但仍然沒有喜悅。

在此先感謝。下面是我的一些tiapp.xml設置 -

<property name="ti.ui.defaultunit" type="string">dp</property> 
    <iphone> 
     <orientations device="iphone"> 
      <orientation>Ti.UI.PORTRAIT</orientation> 
     </orientations> 
     <orientations device="ipad"> 
      <orientation>Ti.UI.PORTRAIT</orientation> 
      <orientation>Ti.UI.UPSIDE_PORTRAIT</orientation> 
      <orientation>Ti.UI.LANDSCAPE_LEFT</orientation> 
      <orientation>Ti.UI.LANDSCAPE_RIGHT</orientation> 
     </orientations> 
    </iphone> 
    <android xmlns:android="http://schemas.android.com/apk/res/android"> 
     <tool-api-level>14</tool-api-level> 
     <manifest> 
      <uses-sdk android:maxSdkVersion="17" 
       android:minSdkVersion="8" android:targetSdkVersion="14"/> 
      <application android:theme="@android:style/Theme.Holo.Light"/> 
     </manifest> 
    </android> 
    <mobileweb> 
     <precache/> 
     <splash> 
      <enabled>true</enabled> 
      <inline-css-images>true</inline-css-images> 
     </splash> 
     <theme>default</theme> 
    </mobileweb> 
    <modules/> 
    <deployment-targets> 
     <target device="android">true</target> 
     <target device="blackberry">true</target> 
     <target device="ipad">true</target> 
     <target device="iphone">false</target> 
     <target device="mobileweb">true</target> 
     <target device="tizen">true</target> 
    </deployment-targets> 
    <sdk-version>3.1.3.GA</sdk-version> 
    <plugins> 
     <plugin version="1.0">ti.alloy</plugin> 
    </plugins> 

回答

0

我想你沒有正確創建項目,你必須建立在對iPad支持通過以下方式的項目。

  1. 文件 - >新建 - >移動項目。
  2. 在嚮導窗口中選擇默認合金,然後按next。
  3. 給名稱和AppId並選擇支持的平臺,您必須檢查iPad支持的iPad選項。如果你沒有檢查你不能支持iPad。

這就是全部。

感謝 納迪姆

+0

@Peter,這樣做解決了您的問題? –

+0

我使用命令行工具 - 鈦和合金創建了應用程序 – Peter

相關問題