Reply to comment

iPhone and JSON installation clarification

Using the nifty JSON Objective C library, it does have lots of instructions for installation, but being the newbie that I am, I couldn't get a reference to JSON.h to compile.

 

From the documentation:

Option 1: Copy the JSON source files into your project
This is the simplest option and should always work—regardless of whether you're creating an application for the iPhone or a desktop Mac.

    1)    Drag the JSON folder from the distribution and drop it on the 'Classes' group in the 'Groups & Files' menu of your Xcode project.
    2)    Tick the 'Copy items into destination group's folder' option.
    3)    Use '#import "JSON.h"' in  your source files.


This neglected to tell you need to check off the "Recursively create groups for any added folders" If you don't check this, it won't work.
Here's a pic.

Reply

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options