Does anyone know how to add a scope bar to a UITableView?
The App Store app does this sometimes, like in the picture below.
I would like to use this scope bar to add sorting options for the elements in the UITableView. This would be more convenient than having a toolbar with a UISegmentControl.
I just don’t know how to implement this. I don’t even know the name of the element (I’m calling it scope bar because it looks just like the scope bar of a UISearchBar, but it is not).

The element is a UISegmentedControl with the
UISegmentedControlStyleBarstyle. You can set thetintColorproperty to get the color desired. Just put the view above the table view and you can get something that looks like that screenshot.