Cannot find 'actionName' in scope
Cannot find 'actionName' in scope
Where are APIWrapper and postMethodCall defined ?
It appears your postMethodCall
function takes three arguments: controllerName
, actionName
, and httpBody
. When you make the call you have to place a colon, :
after each argument name. You have commas after the controllerName
and actionName
arguments. Replace the commas with colons.
APIWrapper.postMethodCall(controllerName: "juniorDoctor", actionName: "jnrsignup", httpBody: data)
If that doesn't fix the compiler error, you will have to supply the signature of the postMethodCall
function so we can see what the arguments are.
For future reference, place your code listings in a code block instead of showing a screenshot of your Xcode window. Code in an image is much more difficult to read and can't be copied and pasted, reducing the chances of people answering your question.