JSONModel: problem with model description



  • Good afternoon. Help me handle JSONModel. Reference to shrines https://yadi.sk/d/ClyoCyVMkoToC I had to make all the screams in one folder because I can't add more than one reference. Problem:

    The project accepts JSON from the site. NSlog looks like this.

    There's a CatalogModel model.

    The code that works.

    At the launch, I get a mistake (Scream 4 and Screen 5)

    The clean project doesn't work.

    If I clean up the ListModel model, it's doing great.

    I understand that I'm not correctly describing the model, but this example of the description I took from the project page on the guithab.



  • You. @implementation ListModel It's in the hedre, which is when you import it into the counteraller that the ListModel has two different implementations, which in terms of the compiler duplicate symbols.

    What do we do about it?

    • It is best not to store two classes in one file - ListModel separately, CatalogModel separately.
    • If this is not an option, just transfer @implementation to .m

    Other advice: rename the protocol ListModel Total ListModelDelegateto avoid confusion.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2