按顺序传递参数

时间:2018-09-29 09:53:02

标签: ios swift web-services

当我调用网络服务时,我传递如下参数

["user_auth": dicAuth,"application":"","name_value_list":"","user_details":dicUserDetail,"language":"en_us"]

但是当我调用webservice时,其顺序更改如下

 ["application": "", "language": "en_us", "user_auth": ["password": "admin", "user_name": "admin"], "user_details": ["device_token_type": "1235145s4df2315423123454231", "device_type": "iOS"], "name_value_list": ""]

但是我想按顺序通过。有什么帮助吗?

1 个答案:

答案 0 :(得分:-1)

找到了低于第三方的解决方案

https://github.com/lukaskubanek/OrderedDictionary