UISegmentedControl in the Navigation Bar with the Back button
问题 I'm adding a UISegmentedControl to the Navigation bar programatically where the titleView should be. But as Apple docs have mentioned under titleView , This property is ignored if leftBarButtonItem is not nil . But I want to have the back button as well. Like they have illustrated in their own images! Below is the code I add the UISegmentedControl . self.navigationItem.leftBarButtonItem = nil; UISegmentedControl *statFilter = [[UISegmentedControl alloc] initWithItems:[NSArray arrayWithObjects