2012-06-04 3 views
0

현재 Flash/AIR 응용 프로그램을 테스트 용 iPad로 가져 오려고합니다. 기본적으로 작동하지만 앱이 매우 작은 창에 표시됩니다.AIR 전체 화면이 iOS에 적용되지 않았습니다.

원본 swf가 2048x1536으로 설정되어 있습니다 (올바른 iPad 해상도 여야 함). 그러나 iPad가 디스플레이의 중앙에있는 작은 창에 2048x1536을 맞추려고하는 것처럼 보입니다.

"2x"를 눌러 앱을 크게 만들면 모든 것이 비례하여 모든 것이 매우 픽셀 화됩니다. 정말 어색해 보입니다.

데스크톱과 Android에서 모든 것이 잘 작동합니다. 내가 FlashDevelop를 사용하여 윈도우 7에서 개발하고

adt -package -target ipa-test -provisioning-profile bat\certificates\xxx.mobileprovision -storetype pkcs12 -keystore "bat\certificates\xxx.p12" -storepass xxx air\xxx.ipa application.xml -C output . 

:

여기
<?xml version="1.0" encoding="utf-8"?> 
<application xmlns="http://ns.adobe.com/air/application/3.2"> 
<id>com.xxx.xxx</id> 
<versionNumber>1.0</versionNumber> 
<filename>xxx</filename> 
<name>xxx</name> 

<initialWindow> 
    <title>xxx</title> 
    <content>xxx.swf</content> 
    <systemChrome>standard</systemChrome> 
    <transparent>false</transparent> 
    <visible>true</visible> 
    <minimizable>true</minimizable> 
    <maximizable>true</maximizable> 
    <resizable>true</resizable> 
    <aspectRatio>landscape</aspectRatio> 
    <renderMode>auto</renderMode> 
    <autoOrients>true</autoOrients> 
    <fullScreen>true</fullScreen> 
    <width>2048</width> 
    <height>1536</height> 
</initialWindow> 

<supportedProfiles>desktop mobileDevice</supportedProfiles> 
<android> 
<manifestAdditions><![CDATA[<manifest> 
<uses-permission android:name="android.permission.INTERNET" /> 
<uses-permission android:name="android.permission.RECORD_AUDIO" /> 
</manifest>]]></manifestAdditions> 
</android> 

<iPhone> 
    <InfoAdditions><![CDATA[<key>CFBundleDevelopmentRegion</key> 
    <string>en</string> 
    <key>UIStatusBarStyle</key> 
    <string>UIStatusBarStyleDefault</string> 
    <key>UIRequiredDeviceCapabilities</key> 
    <array> 
    <string>wifi</string> 
    <string>microphone</string> 
    </array> 
    <key>UIRequiresPersistentWiFi</key> 
    <string>YES</string>]]></InfoAdditions> 
</iPhone> 
</application> 

내가 *의 .ipa 파일을 패키징하는 방법입니다 : 여기

은 application.xml을합니다. renderMode, fullScreen, width/height의 다른 조합을 시도했지만 아무 것도 도움이되지 않았습니다. 앱이 iPad에서 너무 작아서 확실히 이 아닌 전체 화면입니다.

답변

1

iPad에 2X 버튼이있는 경우 "실제"iPad 앱이 아닌 iPhone 앱을 실행하고있는 것입니다. 문제는 XML에 있습니다. iPad 앱으로 컴파일하려면 UIDeviceFamily를 지정해야합니다. leebrimelow.com/?p=2764

+0

application.xml 파일에 iPad 태그가 없습니다.) – TheSHEEEP

+1

@TheSHEEEP : 알겠습니다. 그래도 UIDeviceFamily를 지정하거나 컴파일러에게 iPad 앱을 만들도록 지시해야하는 다른 설정이 필요할 수 있습니다. http://www.leebrimelow.com/?p=2764 – geon

+0

그래, UIDeviceFamily가 누락되었습니다. 감사! 해결책으로 표시 할 수 있도록 답변을 수정할 수 있습니까? :) – TheSHEEEP

1

이 스레드를 참조하십시오.

<key>UIDeviceFamily</key> 
<array> 
<!-- iPhone support --> 
<!--<string>1</string> --> 
<!-- iPad support --> 
<string>2</string> <==== for iPad 
</array> 

http://www.flashdevelop.org/community/viewtopic.php?p=43643 application.xml을 나는 공단하는 성공을 얻었다.

관련 문제