Search code examples
asp.netiosobjective-cwebmethod

Send List<String> from iOS to C# WebMethod


I'm trying to send data to a C# WebMethod that expects a parameter in the form of List from an iOS app. What's the best / correct way to format that data on the app side?


Solution

  • In case anyone else runs into this, it turns out just adding an NSMutableArray to the call comes out to an equivalent JSON request using JSONKit, so I was able to get it working.