Application設定

Bundle identifier Provisioning Profilesを設定する(Ex. com.sendaoi.xxxxx)
ベースSDK iOS 4.2
Target Device Family iPad
iOS Develoyment Target iOS 4.2

横画面固定表示

  • Resources/xxxx-Info.plist
    Supported interface orientations のパラメータ:Landscape (right home button) を選択する
    ※その他は削除
    
  • PhoneGapLib/PhoneGapViewController.m
    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation 
    {
    	if (interfaceOrientation == UIInterfaceOrientationLandscapeRight)
    		return YES;
    	return NO;
    }
    

HTML5 view port

  • UIWebView
    webView.scalesPageToFit = YES ;
    
  • HTML
    <meta name = "viewport" content = "width = device-width, initial-scale = 1, user-scalable = no">
    
    プロパティ 説明 デフォルト 範囲
    width デバイスの横幅 980px 200px to 10,000px,device-width(デバイスの横幅に合わせる,device-height(デバイスの縦幅に合わせる)
    height デバイスの縦幅 - 223px to 10,000px,device-width(デバイスの横幅に合わせる),device-height(デバイスの縦幅に合わせる)
    initial-scale ページが最初に読み込まれた時の拡大率 1 minimum-scale と maximum-scaleプロパティの範囲に準ずる
    user-scalable ユーザーに拡大縮小を許可するか yes yes or no
    minimum-scale 拡大率の下限 0.25 0 to 10
    maximum-scale 拡大率の上限 1.6 0 to 10
最終更新:2011年02月08日 16:48