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!

没有正确的解决方案

其他提示

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top