- 环境切换
- 手动切换环境
- 代码切换环境
- 新增环境
- 删除环境
- 查看 App 本地文件(beta)
- 查看页面层级(beta)
- 查看 UserDefaults(beta)
#import <SZDebugBall/SZDebugBall.h>
[SZEnvironmentManager configEnvs:@[@"开发", @"测试", @"生产"] address:@[@"http://www.api.com/develop", @"http://www.api.com/test", @"http://www.api.com/product"]];
[SZEnvironmentManager configCurrentAddress:@"http://www.api.com/develop"];
NSLog(@"BASE_URL:%@", [SZEnvironmentManager currentAddress]);
/// 环境切换成功后的通知。环境切换成功后,会自动退出 App 一次。
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(environmentChanged:) name:SZEnvironmentChangedNotification object:nil];
SZDebugBall is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'SZDebugBall'
SZDebugBall is available under the MIT license. See the LICENSE file for more info.