2014-05-06 19:41:08 +02:00
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
|
|
|
@class CountryCodeViewController;
|
|
|
|
|
|
|
|
@protocol CountryCodeViewControllerDelegate <NSObject>
|
|
|
|
|
|
|
|
- (void)countryCodeViewController:(CountryCodeViewController *)vc
|
|
|
|
didSelectCountryCode:(NSString *)code
|
|
|
|
forCountry:(NSString *)country;
|
|
|
|
|
|
|
|
- (void)countryCodeViewControllerDidCancel:(CountryCodeViewController *)vc;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
2015-01-14 22:30:01 +01:00
|
|
|
@interface CountryCodeViewController : UIViewController <UITableViewDelegate, UITableViewDataSource, UISearchBarDelegate, UISearchDisplayDelegate>
|
2014-05-06 19:41:08 +02:00
|
|
|
|
|
|
|
@property (nonatomic, strong) IBOutlet UITableView *countryCodeTableView;
|
|
|
|
@property (nonatomic, strong) IBOutlet UISearchBar *searchBar;
|
|
|
|
@property (nonatomic, assign) id<CountryCodeViewControllerDelegate> delegate;
|
2015-01-14 22:30:01 +01:00
|
|
|
@property (nonatomic, strong) NSString* callingCodeSelected;
|
|
|
|
@property (nonatomic, strong) NSString* countryNameSelected;
|
2014-05-06 19:41:08 +02:00
|
|
|
|
|
|
|
@end
|