0

How to display iPhone contacts with email like path application.

I tried following code, its show the contacts name, when I click the contact it navigate to contact details page. But, I need to display contacts in table view then user click customer row the dialog box is open it contain contacts email like path application.

var values = {cancel:function(){}};
values.fields = ['firstName', 'lastName', 'phone', 'email'];

values.selectedProperty = function(e) {
    if(e.property == 'email')
    {
        alert(e.person.email);
    }
 };
$.contactWin.addEventListener('open', function(e){
   Titanium.Contacts.showContacts(values);
});
brandizzi
  • 26,083
  • 8
  • 103
  • 158
Praveen Kumar
  • 308
  • 1
  • 4
  • 18

1 Answers1

0

Take a look at this link. It will show you how you can get contacts from contacts then you can create a table with custom row as you want.

http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.Contacts

Mitul Bhalia
  • 1,217
  • 1
  • 7
  • 8