How can I add Some Bar Buttons or Segment Controll on my Navigation Controller?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kapil Choubisa
    New Member
    • Sep 2009
    • 47

    How can I add Some Bar Buttons or Segment Controll on my Navigation Controller?

    Hi! All.

    I an a new in XCode and iphone.
    I am facing a problem while trying to add bar button and Segment control to my NavigationContr oller.

    I have 4 nib files in my application.
    I had added the Navigation controller to my MainWindow.xib file.
    Then I had added a Bar button and Segment control on it.
    So it is displaying on my first View while I run the application.

    But when I move to other views I am not able to see those controls.

    I have write one line of code for displaying edit button on navigation control.

    Code:
    self.navigationItem.rightBarButtonItem = self.editButtonItem;
    is there any code which I have to include in my viewDidLoad event for getting the barButton and Segment Control?

    Thank you in Advance.
Working...