2015-10-08 42 views
1

我正在爲ios 9中的搜索API做事。我可以顯示標題和描述。但是,我不能爲電話號碼做。它會顯示爲通話按鈕嗎?但是,到目前爲止,我只看到標題和說明。我該怎麼辦?CSSearchableItemAttributeSet不顯示電話號碼

CSSearchableItemAttributeSet * attributeSet = [[CSSearchableItemAttributeSet alloc] initWithItemContentType:(NSString*)kUTTypeItem]; 

attributeSet.title = [NSString stringWithFormat:@"%@",nickname]; 
attributeSet.contentDescription = [NSString stringWithFormat:@"Department - %@", department]; 
attributeSet.keywords = @[nickname, department]; 
attributeSet.phoneNumbers = @[@"23233036"]; 

回答

0

您是否嘗試將內容類型更改爲kUTTypeContact?