How to filter the array of user model data in iOS
Solution:
If you are created one model with different datatypes and saved it in an array then you cannot be able to filter the data..if you tried to filter that it will be crash.
So better you can convert those models to dictionary and save it in an array and apply the predicate function it will works good....keep coding....enjoy....
If you are created one model with different datatypes and saved it in an array then you cannot be able to filter the data..if you tried to filter that it will be crash.
So better you can convert those models to dictionary and save it in an array and apply the predicate function it will works good....keep coding....enjoy....
Comments
Post a Comment