tags:

views:

66

answers:

2

Just recently took over a project from my developer. I'm a noob to coding, but can figure things out pretty well. I'm just trying to implement Back button on one of my screens. It already has the navigation Bar, but no back button, just the title.

Is there a guide on how to get this implemented? Any help would be great!

Thanks!

Update = Here is the code:

<object class="IBUINavigationController" id="144954994">
<reference key="NSNextResponder" ref="191373211"/>
<int key="NSvFlags">290</int>
<string key="NSFrameSize">{320, 44}</string>
<reference key="NSSuperview" ref="191373211"/>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
<int key="IBUIBarStyle">2</int>
<object class="NSArray" key="IBUIItems">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBUINavigationController" id="445217273">
<reference key="IBUINavigationController" ref="144954994"/>
<string key="IBUITitle">Answer Question</string>
</object>
</object>
</object>
+1  A: 

Are you using UINavigationController's? If so, it's automatically put there when you push a view.

(Update based on comment) Using a UINavigationBar

http://developer.apple.com/iphone/library/documentation/uikit/reference/UINavigationBar_Class/Reference/UINavigationBar.html

 bar.topItem.leftBarButtonItem = // set to a UIButton
Lou Franco
No, I'm not. I have a UINavigationBar, added a Bar Button Item. I wasn't using UINavigationController. How do I do so?
BigMike
+1  A: 

If you are using a UINavigationController to control your stack of views, the Back button is automatically added for you when you push on a new view.

Jergason