Getting warning in iPhone: NSString may not respond to '-JSONValue'

前端 未结 3 1892
被撕碎了的回忆
被撕碎了的回忆 2021-01-12 07:54

In my iPhone app, I am making an access to the webserver to fetch the data.

Here I am using JSON to retrieve the data from database.

I get a warning that say

相关标签:
3条回答
  • 2021-01-12 08:32

    Add this #import "JSON.h" at the top of your .m or .h file.

    0 讨论(0)
  • 2021-01-12 08:42

    Have you tried to add JSON Library to your project and import it

    #import "JSON/JSON.h"
    
    0 讨论(0)
  • 2021-01-12 08:42

    You probably just miss the include to your JSON library

    0 讨论(0)
提交回复
热议问题