我想使用ios9,CNContacts框架对在表视图上获取的所有联系人实施搜索.我可以搜索GivenName,FamilyName等,但是当用户在搜索栏中输入搜索查询时,也想搜索电话号码和电子邮件.正如我们可以在ios9 Apple联系人中搜索电话号码/电子邮件一样.
我知道,因为phonenumbers/emailsaddresses是元组的数组,所以使用NSPredicate格式字符串是不可能的.
iphone uisearchcontroller ios9 swift2
ios9 ×1
iphone ×1
swift2 ×1
uisearchcontroller ×1