You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
742 B
37 lines
742 B
1 year ago
|
//
|
||
|
// CountryModel.h
|
||
|
// tongxin
|
||
|
//
|
||
|
// Created by WeiChaoZheng on 2018/6/25.
|
||
|
// Copyright © 2018年 xTT. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import <Foundation/Foundation.h>
|
||
|
|
||
|
@interface CountryModel : NSObject
|
||
|
/**
|
||
|
国家代码 (手机号 头部 eg: +86)
|
||
|
*/
|
||
|
@property (strong, nonatomic)NSString *country_code;
|
||
|
/**
|
||
|
国家名称
|
||
|
*/
|
||
|
@property (strong, nonatomic)NSString *country;
|
||
|
/**
|
||
|
首字母
|
||
|
*/
|
||
|
@property (strong, nonatomic)NSString *firstLetter;
|
||
|
|
||
|
+ (void)getObjsWithSuccess:(void (^)(NSMutableArray *arr))success
|
||
|
failure:(void (^)(NSError *error))failure;
|
||
|
|
||
|
/**
|
||
|
获取 String 的 拼音 首字母
|
||
|
|
||
|
@param country
|
||
|
@return <#return value description#>
|
||
|
*/
|
||
|
+ (NSString *)getFirstLetterFromString:(NSString*)country;
|
||
|
|
||
|
@end
|