session-ios/Signal/src/ViewControllers/CountryCodeViewController.h
2017-03-31 11:58:52 -04:00

30 lines
1,001 B
Objective-C

//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import <UIKit/UIKit.h>
@class CountryCodeViewController;
@protocol CountryCodeViewControllerDelegate <NSObject>
- (void)countryCodeViewController:(CountryCodeViewController *)vc
didSelectCountryCode:(NSString *)code
forCountry:(NSString *)country;
- (void)countryCodeViewControllerDidCancel:(CountryCodeViewController *)vc;
@end
@interface CountryCodeViewController
: UIViewController <UITableViewDelegate, UITableViewDataSource, UISearchBarDelegate, UISearchDisplayDelegate>
@property (nonatomic, strong) IBOutlet UITableView *countryCodeTableView;
@property (nonatomic, strong) IBOutlet UISearchBar *searchBar;
@property (nonatomic, assign) id<CountryCodeViewControllerDelegate> delegate;
@property (nonatomic, strong) NSString *countryCodeSelected;
@property (nonatomic, strong) NSString *callingCodeSelected;
@property (nonatomic, strong) NSString *countryNameSelected;
@end