How to query List<Int> on Realm Swift
问题 How can I filter out the RealmFilter.objectIds that has a given Int? func delete(ids: [Int]) { let filterResultsToDelete = realm.objects(CRMRealmFilterResult.self).filter("ANY objectIds IN %@",ids) //Crashes } class RealmFilterResult : Object { @objc dynamic var filterId: Int = 0 let objectIds = List<Int>() override static func primaryKey() -> String { return "filterId" } } 回答1: This may not be at all what you want but it was a good exercise. Maybe this will help. Let me re-state what I think