let strArray :NSArray = self.filteredArray?.object(at: indexPath.row) as! NSArray
此行中显示的错误是:
Could not cast value of type '__NSDictionaryM' (0x1b5b8a800) to 'NSArray' (0x1b5b89950).
我怎样才能改变这个?
最佳答案
像这样尝试。
let strArray : NSDictionary = self.filteredArray?.object(at: indexPath.row) as! NSDictionary;
此错误显示“无法将实际类型 NSDictionary 转换为预期类型 NSArray”
关于ios - Swift 4 搜索栏中的搜索过滤器问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48542915/