2015-10-18 30 views
3

我在Titanium Appcelerator Studio中發現了一個錯誤,當對象具有電話號碼的自定義標籤時,phone對象返回undefined鈦ios聯繫電話自定義標籤?

不幸的是,他們可能需要更多時間來解決這個問題,但是我可以修改Objective-C的構建類的好消息,這裏是提供個人信息的方法。

內/build/iphone/classes/TiContactsPerson.m

+(NSDictionary*)multiValueLabels 
{ 
    if (multiValueLabels == nil) { 
     multiValueLabels = 
      [[NSDictionary alloc] initWithObjectsAndKeys:(NSString*)kABHomeLabel,@"home", // Generic labels 
      kABWorkLabel,@"work", 
      kABOtherLabel,@"other", 
      kABPersonPhoneMobileLabel,@"mobile", // Phone labels 
      kABPersonPhonePagerLabel,@"pager", 
      kABPersonPhoneWorkFAXLabel,@"workFax", 
      kABPersonPhoneMainLabel,@"main", 
      kABPersonPhoneIPhoneLabel,@"iPhone", 
      kABPersonPhoneHomeFAXLabel,@"homeFax", 
      kABPersonSocialProfileServiceFacebook,@"facebookProfile",// Social Profile Labels 
      kABPersonSocialProfileServiceFlickr,@"flickrProfile", 
      kABPersonSocialProfileServiceGameCenter,@"gameCenterProfile", 
      kABPersonSocialProfileServiceLinkedIn,@"linkedInProfile", 
      kABPersonSocialProfileServiceMyspace,@"myspaceProfile", 
      kABPersonSocialProfileServiceSinaWeibo,@"sinaWeiboProfile", 
      kABPersonSocialProfileServiceTwitter,@"twitterProfile", 
      kABPersonInstantMessageServiceAIM,@"aim", // IM labels 
      kABPersonInstantMessageServiceICQ,@"icq", 
      kABPersonInstantMessageServiceJabber,@"jabber", 
      kABPersonInstantMessageServiceMSN,@"msn", 
      kABPersonInstantMessageServiceYahoo,@"yahoo", 
      kABPersonInstantMessageServiceQQ,@"qq", 
      kABPersonInstantMessageServiceSkype,@"skype", 
      kABPersonInstantMessageServiceGoogleTalk,@"googletalk", 
      kABPersonInstantMessageServiceGaduGadu,@"gadugadu", 
      kABPersonInstantMessageServiceFacebook,@"facebook", 
      kABPersonMotherLabel,@"mother", // Relation labels 
      kABPersonFatherLabel,@"father", 
      kABPersonParentLabel,@"parent", 
      kABPersonSisterLabel,@"sister", 
      kABPersonBrotherLabel,@"brother", 
      kABPersonChildLabel,@"child", 
      kABPersonFriendLabel,@"friend", 
      kABPersonSpouseLabel,@"spouse", 
      kABPersonPartnerLabel,@"partner", 
      kABPersonManagerLabel,@"manager", 
      kABPersonAssistantLabel,@"assistant", 
      kABPersonAnniversaryLabel,@"anniversary", // Date label 
      kABPersonHomePageLabel,@"homepage", // URL label 
      nil]; 
    } 
    return multiValueLabels; 
} 

它不包括自定義標籤的用戶的電話號碼設置,這就是爲什麼phone陣列返回undefined當聯繫人有自定義標籤組。

我的問題如何獲得用戶創建的所有自定義標籤,並將它們推入 以上數組?

注意:我已經向apprielerator Jira報告了這個錯誤。

任何意見是非常讚賞

+0

什麼是鏈接到JIRA票釋放? –

+0

Jira https://jira.appcelerator.org/browse/TC-5730 – Jack

+2

好的,我看到它已被我們的測試人員複製。下一步是安排它。 –

回答