iOSAppLanguageSwitchDemo/README.md
小飞侠u 2259844a1a readme
2017-06-14 09:54:02 +08:00

34 lines
823 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# iOS应用内手动切换语言
iOS手动切换显示语言
基本API包括下面三个
#### NSBundle+AppLanguageSwitch.h
```objective-c
//设置语言
+ (void)setCusLanguage:(NSString *)language;
//获取语言
+ (NSString *)getCusLanguage;
//恢复成系统语言
+ (void)restoreSysLanguage;
```
通知key一个
```objective-c
//当app语言改变之后发送通知
NSString * const ZZAppLanguageDidChangeNotification;
```
## Support
| StoryBoard | Xib | NSLocalizedString |
|:--------------------:|:---------------------------:|:----------------------------:|
| √ | √ | √ |
##效果图
<p align="center" >
<img src="https://github.com/zengqingf/iOSAppLanguageSwitch/blob/master/screenshot/1.gif?raw=true" width="312" height="576">
</p>
更多用法请看demo觉得好用的话别忘star一下哦