In this answer : https://stackoverflow.com/a/4481896/1486928
there is a line like this :
UITableView *tableView = controller == self.fetchedResultsController ? self.tableView : self.searchDisplayController.searchResultsTableView;
It’s the first time I see all these symbols in the same line :/ (I’m a beginner).
This is the conditional operator. What it does is basically it returns one of two values based on its condition:
This can be interpreted as
Here the condition is
so of the view controller is equal to
self.fetchedResultsController, the tableView variable will be assigned toself.tableView, else it’ll be assigned toself.searchDisplayController.searchResultsTableView