Not able to push next view after clicking a uibutton which is on the top right of the view
<p>i am having a view consisting of a tableview and a uibutton like this<img src="http://i.stack.imgur.com/hBfKf.png" alt="enter image description here"> </p>

<p>when i click on button "add" a new class/xib named "Locsetting" should be open.which i am not able to do.
my code: .h file</p>

<pre><code>    @interface LocationViewController : UIViewController     &lt;UITableViewDelegate,UITableViewDataSource&gt;    
 {  
    UITableView *table;    
    NSMutableArray *menuList;  
    LocSetting *locSetting;  
    IBOutlet UIButton *addbutton;  
}

@property (nonatomic,retain) NSMutableArray *menuList;  
@property (nonatomic,retain) IBOutlet UITableView *table;  
@property (nonatomic,retain) LocSetting *locSetting;  
@property (nonatomic, retain) IBOutlet UIButton *addbutton;  
-(IBAction)gotoLocSetting:(id) sender;  
@end

  My .m :    

@synthesize addbutton;  
-(IBAction)gotoLocSetting:(id) sender    {
    NSLog(@"gotoLocSetting Entered");  
    locSetting = [[LocSetting alloc]
                  initWithNibName:@"LocSetting"
                  bundle:nil];  
    //locationViewController.menuList = [menuList objectAtIndex:indexPath.row];  
    [self.navigationController pushViewController:locSetting
                                         animated:YES];  
    [locSetting release];  

}
</code></pre>

<p>what wrong i am doing?or please guide me!
Thanks</p>
