2015-10-18 4 views
3

Я нашел ошибку в Titanium Appcelerator Studio, объект phone return undefined, когда контактный объект имеет пользовательские ярлыки для номера телефона.Titanium 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 массив вернуться неопределенными, когда контакт имеет пользовательские метки задавать.

мой вопрос, как получить все пользовательские метки, созданные пользователем, и нажать их внутри над массивом?

примечание: я сообщил об этой ошибке разработчику Jira.

любые советы очень высоко ценится

+0

Что такое ссылка на билет JIRA? –

+0

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

+2

ОК, я вижу, что это было воспроизведено нашими тестировщиками. Следующий шаг - планирование. –

ответ

Смежные вопросы