This commit is contained in:
小飞侠u 2017-06-13 20:55:54 +08:00
parent 0ba0bf26ef
commit 59027eaa42
2 changed files with 26 additions and 1 deletions

View File

@ -1,2 +1,27 @@
# iOSAppLanguageSwitch # iOS应用内手动切换语言
iOS手动切换显示语言 iOS手动切换显示语言
基本API包括下面三个
#### NSBundle+AppLanguageSwitch.h
```objective-c
//设置语言
+ (void)setCusLanguage:(NSString *)language;
//获取语言
+ (NSString *)getCusLanguage;
//恢复成系统语言
+ (void)restoreSysLanguage;
```
通知key一个
```objective-c
//当app语言改变之后发送通知
NSString * const ZZAppLanguageDidChangeNotification;
```
## Requirements
| StoryBoard | Xib | NSLocalizedString |
|:--------------------:|:---------------------------:|:----------------------------:|
| √ | √ | √ |
更多用法请看demo觉得好用的话别忘star一下哦