J. Doe J. Doe - 1 year ago 138
Swift Question

Strange issue with DDXMLElement

I'm using XMPPFramework and just updated to the version 3.7 and now when I try to compile this line:


it gives me this error:

Value of type 'DDXMLElement' has no member 'setStringValue'

How can I fix that?

Answer Source

you can use this

body.stringValue = message

as body.setStringValue is not available in swift3

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download