Question

I am using Storyboards, and am interested in inserting a UISegmentedControl in my UITableView controller as such:

enter image description here

When I try to drag one directly from the object list, I can't manage to insert on top of the tableView above the search bar and below the nav bar. I also didn't have any luck dragging it into the view hierarchy panel on the left. I have looked into doing it programmatically as suggested by this SO answer, but do not want the segmented control to be inside the Nav Bar, but rather still in the tableView. How may I go about doing this?

Thanks!

No correct solution

OTHER TIPS

In the XIB, you need to have an underlying UIView with the UISegcontrol, the search bar, and tableviews as subviews.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top