I am wondering how to solve my problem.
I have:
- Entity A: Advertisers
- Entity B: Offers
I have some Advertisers with many offers (1:n relation) and Advertisers without offers. Finally, each offer has a price.
I have a UITableView with two sections - Advertisers with offers - Advertisers without offers
The difficulty comes now, the user can add a filter on the price. When a user set a max price at x, then the Advertisers without offers with a price less than x should not appear in the first section anymore.
First, I was thinking to set the sort descriptor and section name to a parameter "HasOffers". So first section would be hasOffers=1 and second section hasOffers=0. However when dealing with the offer price filter my solution does not fit anymore.
Someone has an idea?