문제

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