I can set title on every controller and it will show correctly on the tab, except for the XLSwipeContainerController. Currently I have subclassed it and loading the embedded controllers from a storyboard, then I set title (self.title+ self.navigationController.title + self.tabBarItem.title) after calling [super initWithViewControllers]. This doesn't work.
I have narrowed it down to a difference in calling [super initWithCoder] vs [super initWithNib] and created a workaround by adding a new initializer, initWithViewControllers:(NSArray *)viewControllers andCoder:(NSCoder *)aDecoder, which will call [super initWithCoder].
This seems to solve the problem, however, I feel like it should be possible when doing initWithNib as well. Am I missing something?
My app has this structure:
I can set title on every controller and it will show correctly on the tab, except for the XLSwipeContainerController. Currently I have subclassed it and loading the embedded controllers from a storyboard, then I set title (
self.title
+self.navigationController.title
+self.tabBarItem.title
) after calling[super initWithViewControllers]
. This doesn't work.I have narrowed it down to a difference in calling
[super initWithCoder]
vs[super initWithNib]
and created a workaround by adding a new initializer,initWithViewControllers:(NSArray *)viewControllers andCoder:(NSCoder *)aDecoder
, which will call[super initWithCoder]
.This seems to solve the problem, however, I feel like it should be possible when doing
initWithNib
as well. Am I missing something?