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

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 says:
NSString may not respond to '-JSONValue'
How to resolve it?

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

Have you tried to add JSON Library to your project and import it
#import "JSON/JSON.h"

You probably just miss the include to your JSON library

Related

File not found when trying to import a header file into the bridging header?

I'm trying to import my speech recognition framework into my project. Sadly my project is in Swift and speech rec is in objc. I don't see a problem with this. I have created a bridging header file before importing the framework and compiled to make sure it has no errors. Then I dragged the framework into my project. Got a successful compile again. Now I type this in my header file:
#ifndef Bridging_Header_h
#define Bridging_Header_h
#import "SpeechKit/SpeechKit.h"
#endif
And then I get the error: "SpeechKit/SpeechKit.h" file not found
I have tried reimporting the framework. Deleting and making a new header file etc. Nothing seems to work. I don't get why it's not picking up the header files from the framework.
Does anyone have any ideas? All help would be greatly appreciated.
Thank you so much.
Try #import "SpeechKit.h" or #import <SpeechKit/SpeechKit.h> instead #import "SpeechKit/SpeechKit.h"
use #import <SpeechKit/SpeechKit.h> in bridging header and don't forget to place import SpeechKit in your swift file

Creating Coverflow of menus using Tabku library but cant include header file

I have created app for cover flow of menus.i have followed a tutorial including tabku library in my project.I've done all the steps which is in following link
http://www.applausible.com/blog/?p=657
But it throws error as ' file not found'.Here is my code below.
#import <UIKit/UIKit.h>
#import <TabkuLibrary/TabkuLibrary.h>
#interface ViewController :UIViewController<TKCoverflowViewDelegate,TKCoverflowViewDataSource>{
TKCoverFlowView * Coverflow;
NSMutableArray *arr;
}
#end
I've followed so many tutorials and ended up in the above link...Can anyone help...
The library is actually called Tapku and I ran into the same problem. I ended up adding $(SRCROOT)/tapkulibrary/src to my search header path, and then got a different error: "Interface Builder is unable to open documents of type CocoaTouch XIB." Fortunately the above error was fixed thanks to another SO thread: Interface builder is unable to open documents of type iPad XIB

Use of undeclared identifier "FlurryAPI"

I already have analytics enabled and working
i have added:
#import "FlurryAdDelegate.h"
#import "FlurryAppCircle.h"
#import "FlurryOffer.h"
#import "FlurryAnalytics.h"
this line throws this error -Use of undeclared identifier "FlurryAPI":
[FlurryAPI setAppCircleEnabled:YES];
The right call for that is [FlurryAppCircle setAppCircleEnabled:YES];
I don't think there's a FlurryAPI class at all.
See sample code at the Flurry documentation site.
Are you sure you imported the class that has FlurryAPI? Did you follow all the instructions for flurryAPI? If that was all you needed to import you most likely need to create a string (or whatever flurry uses!)
Another thing is, you could have possibly forgot to import the framework!

Trying to use the STHorizontalPicker Library from GitHub but getting multiple errors

I'm trying to use the open source STHorizontalPicker library to implement a horizontal picker to my project but when importing the .m and .h files from GitHub to my project I'm getting multiple errors when compiling.
Does it require any special implementation?
I'm simply copying the .h and .m and adding to the project. Error are like : property 'cornerRatius' cannot be found in forward class object 'CALayer'...
Do I have to import some class to those files ?
Thnaks in advice.
Do I have to import some class to those files?
Yes, you'll need Quartz.
#import <QuartzCore/QuartzCore.h>

iOS linking to "ABAddressBook.h"

So I suspect this to be a project problem as opposed to a code problem. I am still relatively new to xcode. I am trying to access the ABAddressBook libraries and have included them in the project alright.
![alt text][1][1]: http://i.stack.imgur.com/lBaW0.png
Now when I try to say import "ABAddressBook.h", it doesn't know what I am talking about. Is there anything else I need to do to get that set up? Thanks!
Try
#import <AddressBook/AddressBook.h>
#import <AddressBookUI/AddressBookUI.h>
You have to import two frameworks one is the
AddressBook and the other is AddressBookUI and then you have to import those files into your viewController subclass file and you are done