LoginSignup
3
1

More than 3 years have passed since last update.

Swift:「__NSCFNumber」をStringにする際の対処方法

Last updated at Posted at 2019-08-12

はじめに

jsonをパースする際__NSCFNumberStringにキャストする際に躓いたため、備忘録を含め記録として残したいと思います。

以下のようにしていただければ解決できるかと存じます。

solved
let hoge = String(describing: fuga)

今回参考にした記事です。
より詳細に記載がりますので、よろしければご参照ください。
https://stackoverflow.com/questions/48847788/swift-4-could-not-cast-value-of-type-nscfnumber-to-nsstring

ご参考になれば幸いです。

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1