This is the way you add a navigation bar to a view controller.
 Select the view controller and in the editor->embed in menu choose navigation 
controller.
To add UIBarButtonItems, drag on to the view controller seen.  Then in that 
same seen, you should find a navigation item.  You set the title and make 
connections from it.  To add a button to the bar, you drag from one of the 
navigation item’s outlets to the bar button.

After embedding the view controller, you will also have a navigation controller 
seen where the navigation bar is located.  When you embedded the view 
controller, it added it to the storyboard and connected it’s relation segue to 
the view controller.  You need to make sure that the navigation controller is 
set as the initial view controller in the attributes inspector.

Toolbars are different.  To add a toolbar, just drag one to the content view 
and position it at the bottom of the view.

On Aug 2, 2015, at 10:44 PM, venky...@gmail.com wrote:

Thank you for the help!
Could you explain in a bit more elaborate way?
Do I do what you suggested after adding in navigation bar? Moreover, is the 
procedure similar for adding a toolbar?

Sent from my iPhone

On 02-Aug-2015, at 8:35 pm, Barry Hadder <bhad...@gmail.com 
<mailto:bhad...@gmail.com>> wrote:

> Hi,
> 
> 
> 
> First, you would embed the view controller in a navigation controller from 
> the editor menu.
> 
> You should then find a navigation item in the controller seen when you expand 
> the controller.  You set the title of the bar in it’s inspector and make 
> connections as well.  In the connections inspector, drag from one of it’s 
> outlets, e.g., backBarButtonItem, leftBarButtonItem, rightBarButtonItem to 
> the bar button you dragged to that seen.
> 
> On Sunday, August 2, 2015 at 1:52:56 AM UTC-5, Venkatesh Potluri wrote:
> Hi, 
> Using voice over, I typically add labels, buttons and text fields by dragging 
> them from the library to the document outlin in the Interface builder.  I 
> change the attributes such as the title, label text, et cetera using the 
> attributes inspector. However, I am unable to change the title of the 
> navigation bar in this way. How do I do that? Is dragging a bar button on to 
> the navigation bar in the document outline the correct way to add bar buttons 
> to the navigation bar? 
> Thank you. 
> Regards, 
> Venkatesh 
> 
> Sent from my iPhone
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "MacVisionaries" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to macvisionaries+unsubscr...@googlegroups.com 
> <mailto:macvisionaries+unsubscr...@googlegroups.com>.
> To post to this group, send email to macvisionaries@googlegroups.com 
> <mailto:macvisionaries@googlegroups.com>.
> Visit this group at http://groups.google.com/group/macvisionaries 
> <http://groups.google.com/group/macvisionaries>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.


-- 
You received this message because you are subscribed to a topic in the Google 
Groups "MacVisionaries" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/macvisionaries/wJBKeZ4tAjE/unsubscribe 
<https://groups.google.com/d/topic/macvisionaries/wJBKeZ4tAjE/unsubscribe>.
To unsubscribe from this group and all its topics, send an email to 
macvisionaries+unsubscr...@googlegroups.com 
<mailto:macvisionaries+unsubscr...@googlegroups.com>.
To post to this group, send email to macvisionaries@googlegroups.com 
<mailto:macvisionaries@googlegroups.com>.
Visit this group at http://groups.google.com/group/macvisionaries 
<http://groups.google.com/group/macvisionaries>.
For more options, visit https://groups.google.com/d/optout 
<https://groups.google.com/d/optout>.

Barry Hadder
bhad...@gmail.com



-- 
You received this message because you are subscribed to the Google Groups 
"MacVisionaries" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to macvisionaries+unsubscr...@googlegroups.com.
To post to this group, send email to macvisionaries@googlegroups.com.
Visit this group at http://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.

Reply via email to