0

我是IOS中phonegap的新手。我按照电话间隙的指导线制作项目。但现在我想向前迈出一步。如何调用 AppDelegate 或任何其他 IOS 类的方法?

任何机构都可以建议我吗?

这是我的代码:

<p> 
         <label for="password" class="youpasswd" data-icon="p"> Your password </label>
                                    <input id="password" name="password" required="required" type="password" placeholder="Password" /> 
                                </p>
                                <p class="login button"> 
                                    <input onfocus="alert('focus on')" type="button" value="Login" onclick="login();"/> 
                                </p> 

我的脚本功能:

function login(){
    // here I want call any appDelegate Method   
}

如果有人帮助我达到我的观点,我会感觉很好。

提前致谢。

4

1 回答 1

3

嗨,我认为这可能会对您有所帮助 http://docs.phonegap.com/en/2.0.0/guide_plugin-development_index.md.html#Plugin%20Development%20Guide

于 2012-08-21T06:53:18.947 回答