I'm current creating a UISegmentedControl
programmatically in a view controller's viewDidLoad
method and adding it to the view controller's navigation bar by assigning it to self.navigationItem.titleView
.
That's easy enough, but I'd like to be able to do this in Interface Builder as well and so far haven't been able to figure out how. Google hasn't been much help either. Can someone describe how to do this in IB or point to an online example? I'd be much appreciative. Thanks, Howard