Question about scope buttons

I was working on this tutorial: https://www.raywenderlich.com/113772/uisearchcontroller-tutorial, which is on search capabilities. I got it to work, but I am curious how to format the scope buttons. For example, I am building an app with 8-10 scope buttons, but there is no way I can have them all on one line without cutting off each button. I would like to scope buttons to fully display in 2-3 lines. Is there anyway to get the scope buttons to fully display and wrap around?

The control is a UISegmentedControl, which as far as I know will only arrange its options in a line.

If you have that many options, then I think I would select a different control to select from - a UIPicker or UICollectionView, perhaps.

Alternatively, perhaps you could look into the custom controls tutorials and develop your own ‘multiline segmented control’.