I'm trying to return a value (string) from php to IOS application:
echo "1";
This is the swift code:
let returnedData = NSString(data: unwrappedData, encoding: String.Encoding.utf8.rawValue) as! String
print(returnedData)
if returnedData == "1" {
... something
}
The print function shows the correct value (that is, 1). But the check fails.