UINavigationController how to set title

UINavigationController how to set title

I want to set the tile of the UINavigationController when a view is displayed once new view is pushed.

Thanks

View Answers

January 5, 2015 at 10:25 PM

Hi,

You should use the following code:

self.navigationController.navigationItem.title=[NSString stringWithFormat:@"%@",strTitle];

Thanks

Ads









Related Tutorials/Questions & Answers:
UINavigationController how to set title
UINavigationController how to set title  I want to set the tile of the UINavigationController when a view is displayed once new view is pushed. Thanks   Hi, You should use the following code
How to send UIWebView Title to UINavigationBar
How to send UIWebView Title to UINavigationBar  How can i replace the title of the UINavigationBar to UIWebView Page Title(i.e. javascript title)?   Write the given code into webViewDidFinishLoad method NSString
Advertisements
Set Title of PowerPoint Slide Using Java
Set Title of PowerPoint Slide Using Java   ... slide and set title. HWSL is used to make the Microsoft PowerPoint 97(-2003... presentations and set the title of the slide. For this we are creating the object
uinavigationcontroller add multiple buttons
uinavigationcontroller add multiple buttons  How to add multiple buttons to the UINavigationController
How can I change UIButton title color?
How can I change UIButton title color?  Hi, I have a button in my iPhone/iPad application. I want to change the color of the text when user clicks..., You have to set the color of the button for a particular state say
How to access the Title tag from xml to jsp
How to access the Title tag from xml to jsp  How to access the Title tag from xml to jsp   Please visit the following link: http://www.roseindia.net/jsp/parsing-xml.shtml The above link will provide you an example
UINavigationController hide navigation bar
UINavigationController hide navigation bar  HI, How to hide the navigation bar of UINavigationController? I have to hide navigation bar of UINavigationController on the click of a button. Thanks   Hi, Use following
uinavigationcontroller go back
uinavigationcontroller go back  Hi, How to go back to the previous view on the navigation controller view. Write code for uinavigationcontroller go back. Thanks
uinavigationcontroller back button not showing/ missing
  You need to set the title of UINavigationBar of the root view controller...uinavigationcontroller back button not showing/ missing  Hi, In my... but ... somehow in the next view uinavigationcontroller back button not showing
how to set class path
how to set class path  how to set class path in java
how to set the values in jsp
how to set the values in jsp  how to set the values text boxs in jsp frm dbase via servlet
how to set background image
how to set background image  how to set image in background in that image i want over lay text how it possible in jsp? using flash image how it is overlayed in jsp page? thanks
How to set NSZombieEnabled iPhone
How to set NSZombieEnabled iPhone  Hi, In my application I have to find and fix the object release issue. How to set NSZombieEnabled iPhone to find the bugs? Thanks   Hi, Please see the thread NSZombieEnabled iPhone
uinavigationcontroller background image
; You can also make a custom UINavigationController UIToolbar and set...uinavigationcontroller background image  I wants to add a background image to uinavigationcontroller.   Use setBackgroundImage to to add
UIWebView in UINavigationController
UIWebView in UINavigationController  I am wondering why application gets slow while push and pop. I have used the UINavigationController in my application. [self.navigationController popViewControllerAnimated:YES
How to set target to videos??
How to set target to videos??  Hi, i am developing project in HTML 5 with videos so, i am dispalaing videos in two table coloumn,if the video in one coloumn is clicked,it should be played in another coloumn. plzz suggest any idea
how set data in a dialog
how set data in a dialog  Button button = (Button) findViewById(R.id.button1); button.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { setContentView
how to set the value of textfield constant
how to set the value of textfield constant  how to set the value of textfield constant
how to set time in jsp page
how to set time in jsp page   I need code for set the time in jsp code .iam using struts frame work back end oracle 10g ide is eclipse 6.0
how to set size of button,textfield.
how to set size of button,textfield.  how we set size of button... large how to set as a preferd size in the panel or frame .when we click maximize button not effect on text or button to their of size the set on the prefered
UINavigationController Navigating to back
UINavigationController Navigating to back  How to navigate to previous screen or simply go back or simulate the back button programmatically in iOS? Thanks   Hi, You can use the following code
How to set Marathi font to Label??
How to set Marathi font to Label??  Hello, I am doing one project in java-Swing Farm Management i want to set Marathi label in that so how i can? plzzzz help me its urgent
How to set placeholder in uitextfield programmatically?
How to set placeholder in uitextfield programmatically?  Can any one tell me about the example code for setting the placeholder in a UITextField programatically? Thanks   HI, Its easy. Use the following code
uinavigationcontroller add right button
uinavigationcontroller add right button  Hi, How to add the right button programatically to a UINavigation Controller? Thanks   Hi, You can use the following code: - (void)viewDidLoad { [super viewDidLoad
Push and Pop UINavigationController
Push and Pop UINavigationController  push and pop UINavigationController example   Pushing and Popping Stack Items...];   UINavigationController *mNav = [[UINavigationController alloc
Make Colorful Title of PowerPoint Slide Using Java
Make Colorful Title of PowerPoint Slide Using Java       < In this example we are going to create a PowerPoint slide and set color full title. The methods used
How to set pdf background color.
How to set pdf background color. In this example, you will see how to set back ground color of pdf in struts2.  index.jsp <html> <...; Welcome.jsp <html> <head><title>Insert title here<
HOW TO DISPLAY 2 SET OF CONTROLS
HOW TO DISPLAY 2 SET OF CONTROLS  i can be display one row by selecting value from drop down box BUT ALSO i need to display 2 rows by selecting value from drop down box of textbox's and radio button,drop down box using this code
How to add a columns with a button set to a Jtable built with database result set
How to add a columns with a button set to a Jtable built with database result set  hi, i have to build a gui to display account numbers and account... that button column to the table which is built with database result set. i would thank
How to set CLASSPATH in Java?
What is CLASPATH in Java and how to set it?   ... and CLASSPATH ? How it is set in environment variable?. ANS:- Significance... How to set System Classpath : Java class path is set for including
How to set heap memory in cassandra on docker
How to set heap memory in cassandra on docker  I am trying to run cassandra on docker and its throwing error asking to set the heap memory..._SIZE=2048M How to set the heap memory in cassandra on docker? Thanks  

Ads