[TIMOB-819] Saving contact with e-mail or phone set crashes application
| GitHub Issue | n/a | 
|---|---|
| Type | Bug | 
| Priority | Medium | 
| Status | Closed | 
| Resolution | Fixed | 
| Resolution Date | 2011-04-17T01:54:20.000+0000 | 
| Affected Version/s | n/a | 
| Fix Version/s | Release 1.4.0 | 
| Components | iOS | 
| Labels | contacts, ios, iphone, mobilesdk | 
| Reporter | Nick Wing | 
| Assignee | Reggie Seagraves | 
| Created | 2011-04-15T02:37:08.000+0000 | 
| Updated | 2011-04-17T01:54:20.000+0000 | 
Description
The following causes application to crash. (mobilesdk
1.2.0)
var contact = Ti.Contacts.createContact();
contact.firstName = 'Nick';
contact.lastName = 'Wing';
contact.email = 'email@domain.tld'; // either of these will crash it
contact.phone = '5125551212'; // either of these will crash it
contact.save();
This should be fixed under the new contacts implementation. Documentation should be released with 1.4 describing how to use the new email/address/etc. properties, which now use the appropriate multivalue format.