多设备混合应用平台视图

时间:2014-10-14 16:52:34

标签: ios iphone cordova visual-studio-2013 multi-device-hybrid-apps

我想为我的应用添加“后退按钮”面板,但仅适用于iphone。 我正在使用vs2013多设备混合应用程序插件来开发移动应用程序。经过很多错误和问题我设法开始编码阶段,事情是Android设备有面板“回”或其他东西。但我需要为iphone设置它。项目有“合并”文件夹,我相信部分用于它。 (我不想为整个项目添加额外的按钮,只有iphone足够我,因为你知道android设备有面板“后退”或其他东西。) 如果它是可能的;我怎样才能做到这一点?这是我的页面示例之一;

      <!DOCTYPE html>
      <html>
      <head>
      <meta charset="utf-8" />
      <title>Föy</title>
<link href="css/index.css" rel="stylesheet" />
<script src="scripts/jquery-1.8.3.min.js"></script>
<link href="css/bootstrap.min.css" rel="stylesheet" />
<link href="css/login.css" rel="stylesheet" /> 
<script>
    $(document).ready(function () {
        $("#btnLogin").click(function () {
            window.location = "main.html";
        })
    });
</script> 
</head>
 <body>

<div class="container" id="login-block">
    <div class="row">
        <div class="col-sm-6 col-md-4 col-sm-offset-3 col-md-offset-4">
            <h3 class="animated bounceInDown">FÖY Fatura Ödeme Sistemleri</h3>
            <div class="login-box clearfix animated flipInY">
                <div class="login-logo">
                    <a href="#"><img src="images/logo.png" alt="Company Logo" /></a>
                </div>
                <hr />
                <div class="login-form">
                    <div class="alert alert-error hide">
                        <button type="button" class="close" data-dismiss="alert">&times;</button>
                        <h4>Hata!</h4>
                        İşlem Sırasında Hata Oluştu
                    </div>
                    <div>
                        <input type="text" class="form-control" id="txtUser" placeholder="Bayi Kodu" required />
                        <input type="password" class="form-control" id="txtPassword" placeholder="Şifre" required />
                        <button type="button" id="btnLogin" class="btn btn-red">GİRİŞ</button>
                    </div>
                    <div class="login-links">
                        <a href="forgot-password.html">
                            Şifremi Unuttum?
                        </a>
                        <br />
                        <a href="sign-up.html">
                            Bayi Değilim? <strong>Bayi Ol!</strong>
                        </a>
                    </div>
                </div>
            </div>

            <div class="social-login row">
                <div class="fb-login col-lg-6 col-md-12 animated flipInX">
                    <a href="#" class="btn btn-facebook btn-block"><strong>Facebook</strong> ile bağlan</a>
                </div>
                <div class="twit-login col-lg-6 col-md-12 animated flipInX">
                    <a href="#" class="btn btn-twitter btn-block"><strong>Twitter</strong> ile bağlan</a>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="cordova.js"></script>
<script src="scripts/platformOverrides.js"></script>
<script src="scripts/index.js"></script>
</body>
</html> 

谢谢你,最诚挚的问候

1 个答案:

答案 0 :(得分:1)

将您的平台特定文件放在merges\ios\文件夹中,它应该在构建期间被选中。可以找到更多信息和指导here