Sunday, September 29, 2013

The title issue UINavigationController

UINavigationController + UITabBarController both used together. .
Why is the title of the navigation happens not set on it. . .
Reply:
In each controller's init function add
self.navigationItem.title = @ "controller title";

Try this okay

Reply:
landlord reply quote:
UINavigationController + UITabBarController both used together. .
Why is the title of the navigation happens not set on it. . .

Not ah.
Reply:
 
- (Id) init {
self = [super initwithNibName: nil bundel: nil];
if (self) {
self.title = @ "111";
UITabBarItem * tbi = [self tabBarItem];
[Tbi setTitle: @ "222"];
}
return self;
}


Try this.
Reply:
2F reply quote:
quote reply landlord:
UINavigationController + UITabBarController both used together. .
Why is the title of the navigation happens not set on it. . .

Not ah.


He will put the name of tabbar modified. . . Navigation bar or not
Reply:
quote 1 floor reply:
in each controller's init function add
self.navigationItem.title = @ "controller title";

Try this okay


Not ah. .
Reply:
3rd Floor reply quote:
Java code

- (Id) init {
self = [super initwithNibName: nil bundel: nil];
if (self) {
self.title = @ "111";
UITabBarItem * tbi = [self tabBarItem];
[Tbi setTitle: @ "222"];
}
ret ......


Navigation bar above or not. .
Reply:
Your UINavigationController + UITabBarController is how to use
Reply:
7th floor beijinuo reply quote:
your UINavigationController + UITabBarController is how to use


Is to tabbar added to the nav root attempt, and then added to the window in the nav. .
self.tabBar = [[UITabBarController alloc] init];
self.tabBar.viewControllers = arry;

_nav = [[UINavigationController alloc] initWithRootViewController: self.tabBar];
[Self.window addSubview: self.nav.view];

Then I think in the first set on the interface at the nav title
Reply:
You try self.tabBar.title = @ "***", Also, I think you have a problem of structural design, it is best to join tabbarcontroller navigation view controller inside, tabbarcontroller as the topmost
Reply:
self.title = @ ""; you can modify
Reply:
Is push the viewcontroller of self.title is the navigation bar to see the title, instead of setting the navigation object
Reply:
8th Floor like7xiaoben reply quote:
reference 7th floor beijinuo reply:
Your UINavigationController + UITabBarController is how to use

Is to tabbar added to the nav root attempt, and then added to the window in the nav. .
self.tabBar = [[UITabBarController alloc] init];
self.tabBar.viewControllers ......


I wrote an example pass up, you see is not what you want
http://download.csdn.net/detail/beijinuo/4734208
Reply:
9th floor numbbuaa reply quote:
you try self.tabBar.title = @ "***", Also, I think you designed this structure some problems, it is best to join tabbarcontroller navigation view controller inside, tabbarcontroller as the topmost


I there are four interfaces, and if so write it not the case then four interfaces are the same name. . . I think every interface has its own name. . .

No comments:

Post a Comment