从ContainerView返回后标题消失

时间:2015-11-04 14:17:06

标签: ios objective-c uiviewcontroller back-button uicontainerview

从另一个UIViewController返回时,我的UIViewController标题会消失。

我的设置如下:

UINavigationController -> 
RootViewSegue -> 
mainUIViewController -> 
ContainerView -> 
embedSegue -> 
UITableViewController -> 
pushSegue -> 
detailUIViewController
首次启动时

mainUIViewController正确加载,包括UITableViewController中嵌入的ContainerView。显示主UIViewController的标题。

详细按下后退按钮UIViewController时,主UIViewController会再次出现,但标题栏已变为空白。

按下后退按钮时,在主ViewDidAppear上调用

UIViewController。在viewDidAppear内查询self.title时,会返回正确的标题。这是初始加载和返回主UIViewController后的情况。

然而,

self.navigationcontroller似乎是零。查询它返回:

error: property 'navigationController' not found on object of type 'mainViewController *'

我想知道如何触及并设置现在可见的标题栏?

0 个答案:

没有答案