2017-03-26 21:56:17 +02:00
|
|
|
//
|
|
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
|
|
//
|
|
|
|
|
2014-05-06 19:41:08 +02:00
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
|
|
|
@class CountryCodeViewController;
|
|
|
|
|
|
|
|
@protocol CountryCodeViewControllerDelegate <NSObject>
|
|
|
|
|
|
|
|
- (void)countryCodeViewController:(CountryCodeViewController *)vc
|
2017-03-31 05:05:26 +02:00
|
|
|
didSelectCountryCode:(NSString *)countryCode
|
|
|
|
countryName:(NSString *)countryName
|
|
|
|
callingCode:(NSString *)callingCode;
|
2014-05-06 19:41:08 +02:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
2015-12-22 12:45:09 +01:00
|
|
|
@interface CountryCodeViewController
|
|
|
|
: UIViewController <UITableViewDelegate, UITableViewDataSource, UISearchBarDelegate, UISearchDisplayDelegate>
|
2014-05-06 19:41:08 +02:00
|
|
|
|
2017-03-31 05:05:26 +02:00
|
|
|
@property (nonatomic) IBOutlet UITableView *countryCodeTableView;
|
|
|
|
@property (nonatomic) IBOutlet UISearchBar *searchBar;
|
|
|
|
@property (nonatomic, weak) id<CountryCodeViewControllerDelegate> delegate;
|
|
|
|
@property (nonatomic) NSString *countryCodeSelected;
|
|
|
|
@property (nonatomic) NSString *callingCodeSelected;
|
|
|
|
@property (nonatomic) NSString *countryNameSelected;
|
2017-03-31 17:57:58 +02:00
|
|
|
@property (nonatomic) BOOL shouldDismissWithoutSegue;
|
2014-05-06 19:41:08 +02:00
|
|
|
|
|
|
|
@end
|