簡體   English   中英

在Interface Builder中更改UINavigationController UIViewController的標題視圖

[英]Changing the Title View of a UINavigationController UIViewController in Interface Builder

是否可以從Interface Builder中更改UINavigationController包含的UIViewController的標題視圖(即添加UISegmentedControl )? 我目前正在使用以下代碼在此工作:

-(void)viewDidLoad
{
    [super viewDidLoad];
    self.navigationItem.titleView = self.filterSegmentedControl;
}

但是,我更願意在IB中設置所有人。 謝謝!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM