mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-04-24 03:00:11 -04:00
34 lines
873 B
Objective-C
34 lines
873 B
Objective-C
//
|
|
// CDVNavigationBarController.h
|
|
// HelloPhoneGap1
|
|
//
|
|
// Created by Hiedi Utley on 8/18/11.
|
|
// Copyright (c) 2011 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
@protocol CDVNavigationBarDelegate <NSObject>
|
|
-(void)leftButtonTapped;
|
|
-(void)rightButtonTapped;
|
|
@end
|
|
|
|
@interface CDVNavigationBarController : UIViewController{
|
|
|
|
IBOutlet UIBarButtonItem * leftButton;
|
|
IBOutlet UIBarButtonItem * rightButton;
|
|
IBOutlet UINavigationItem * navItem;
|
|
id<CDVNavigationBarDelegate> delegate;
|
|
|
|
}
|
|
|
|
@property (nonatomic, retain) UINavigationItem * navItem;
|
|
@property (nonatomic, retain) UIBarButtonItem * leftButton;
|
|
@property (nonatomic, retain) UIBarButtonItem * rightButton;
|
|
@property (nonatomic, retain) id<CDVNavigationBarDelegate> delegate;
|
|
|
|
-(IBAction)leftButtonTapped:(id)sender;
|
|
-(IBAction)rightButtonTapped:(id)sender;
|
|
|
|
@end
|