iOS swift5.0 NSNumber 转 Sting 遇到的问题(Swift中NSNumber转String)
编译器报错:Couldnotcastvalueoftype'__NSCFNumber'(0x...)to'NSString'(0x...).解决方式:ThevalueisanNSNumber,notanNSString.YoucanusestringValuetoconvertit:ifleta=d["a"]as?NSNumber{letaString=a.stringValueprintln(a