Adding Action to NavigationBar


#1

I am a student working on iPhone Programming as a Winter Term Project. In short, I have like two weeks to make an app (HA!). Anyway, I am trying to add a “+” button on the right side of the NavigationBar.

I found this code to do that:

UIBarButtonItem *addButton = [[UIBarButtonItem alloc]
                                  initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(addAction:)];
self.navigationItem.rightBarButtonItem = addButton;

What I am trying to do is create an app very similar to what is being down with the Homepwner app. I need the plus button to add a row to the table (ie add a “Possession”) but first it would take you to another view where you can enter the data that will go into the table.

I hope that makes sense! Any advice?

Thanks in advance!