I am trying to change the views (Master and Detail) of my spliviewcontroller using a segmented controll located on a toolb开发者_运维问答ar on the DetailView.
I'm not sure how to controll these views.
Any help would be greatly appreciated.
The easiest thing is to have your segment controller change subviews within these views rather than changing the views themselves.
When the user taps a segment on the segment control, send the action to your DetailViewController and switch out the subview for another one.
精彩评论