35 lines
807 B
Objective-C
Executable File
35 lines
807 B
Objective-C
Executable File
//
|
|
// XWCountryCodeController.h
|
|
// XWCountryCodeDemo
|
|
//
|
|
// Created by 邱学伟 on 16/4/19.
|
|
// Copyright © 2016年 邱学伟. All rights reserved.
|
|
// 国家代码选择界面
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
//1.代理传值
|
|
@protocol XWCountryCodeControllerDelegate <NSObject>
|
|
|
|
@optional
|
|
-(void)returnCountryCode:(NSString *)countryCode;
|
|
|
|
@end
|
|
|
|
//2.block传值 typedef void(^returnBlock)(NSString *showText);
|
|
typedef void(^returnCountryCodeBlock) (NSString *countryCodeStr);
|
|
|
|
@interface XWCountryCodeController : UIViewController
|
|
|
|
//代理
|
|
@property (nonatomic, assign) id<XWCountryCodeControllerDelegate> deleagete;
|
|
|
|
//block
|
|
//block声明属性
|
|
@property (nonatomic, copy) returnCountryCodeBlock returnCountryCodeBlock;
|
|
//block声明方法
|
|
-(void)toReturnCountryCode:(returnCountryCodeBlock)block;
|
|
|
|
|
|
@end
|