I know this is a startlingly stupid question, but I can't figure it out. Every answer involves a UISearchBar, which is not what I've got.
I'm trying to display 2 sets of results on one TableViewController.
Results to display
1) everything in my managedObjectContext
which is set up in my viewDidLoad
2) a filtered set of results if a predicate is selected.
On MyTableViewController
, I have a popover which instantiates when I click a UIBarButtonItem
on MyTableViewController
. On the popover, I set a predicate on MyTableViewController
.
Basically, I'd like to toggle what's displayed and that display toggle is driven by whether my variable is nil
(everything displays) or filtered (variable sets a predicate).