我通过使用 html 在我的 iPhone 应用程序中使用 Skype 集成。当我加载页面时,它将显示用户是在线还是离线。当我按下在线按钮时,我的应用程序将关闭,Skype 将打开。但是,当我按下离线按钮时,它会发生与上面相同的事情。我使用以下代码在 webview 中设计 Skype 按钮以显示用户的 Skype 在线状态和 Skype 呼叫。
<a href="skype:arafa_futbal?call">
<img src="http://mystatus.skype.com/smallclassic/arafa_futbal" style="border: none;"
width="114" height="20" alt="My status" />
</a>
我的问题是当用户离线时如何禁用 webview?
即,如果我按下离线按钮,它不应该做任何事情..