Network switches using Settings.bundle

Objective: disposable packaging, testing can go to iPhone settings, find the APP, when clicked, then switch independent network environments (testing, pre-production, officially). Close APP reopen effect.

Roll up its sleeves ahead and do ......

1, and generates a set Setting.bundle

Next……create……

The above information is provided for generating a generally Setting.bundle is a pre-production test 0 2 1 formal default preproduction

2, the new class NetConfig

Singleton set, and the new method of obtaining environment, facilitate other class calls ......

3, the new macro definition class NetConfigMacros_h

4, call the header files, you can call

 

 

Guess you like

Origin www.cnblogs.com/huangzs/p/11123106.html