0
나는 내 navigationBar
에 UISegmentedController
을 가지고 있습니다. 보기와 함께 내비게이션 막대의 하위보기를 푸시하는 방법
@property (nonatomic) UISegmentedControl *segView;
...
- (void)viewDidLoad {
[super viewDidLoad];
_segView = [[UISegmentedControl alloc] initWithItems:@[@"Seg1", @"Seg2"]];
[_segView setSelectedSegmentIndex:0];
[_segView addTarget:self action:@selector(segmentAction:) forControlEvents:UIControlEventValueChanged];
[self.navigationController.navigationBar addSubview:_segView];
}
내가 navigationController
에보기를 밀어
어떻게 분할 컨트롤을 할 은 이전보기로 스택에 푸시합니다? 대신 이런 navigationItem
의 titleView
등 navigationBar
세트 subView
로 UISegmentedControl
을 첨가
내가 필요한 것. :) –