我想問一下關於從聯繫API科爾多瓦2.5.0刪除功能。我使用xcode 4.6和iphone 5.1.1版本。這真的有用嗎?爲什麼刪除函數總是去onRemoveError?刪除聯繫人科爾多瓦2.5 IOS不工作
這是代碼:
var myContact = navigator.contacts.create();
myContact.note = document.getElementById('txtNote').value;
myContact.nickname = document.getElementById('txtNickname').value;
var name = new ContactName();
name.givenName = document.getElementById('txtGiven').value;
name.familyName = document.getElementById('txtFamily').value;
myContact.name = name;
// save
myContact.save(onSaveSuccess,onSaveError);
// remove
myContact.remove(onRemoveSuccess,onRemoveError);
並保存聯繫人正在工作? – 2013-03-08 02:18:09