samedi 25 mars 2017

how to compare String and any type whether it is equal or not in swift?

For example,
let a: String = "sat" let b: Any = "sat"

if a == b

I tried that before.But it shows mismatching type string and any.
Please help me for this problem.I am new to swift.

Aucun commentaire:

Enregistrer un commentaire