0

I have a class with needed requests that I use for my app.

So let's say that I need movies list from server:

[[MyApiClass sharedInstance] getMovies];

So it return for me JSON with movies. How can I get this list, for my share extension?

The problem that the MyApiClass is not in the compiled resources of extension target.

Matrosov Oleksandr
  • 25,505
  • 44
  • 151
  • 277

1 Answers1

0

The problem that the MyApiClass is not in the compiled resources of extension target.

Well in that case, select MyApiClass and in the file inspector (right sidebar first tab), add the class to your extension target :-)

Schemetrical
  • 5,506
  • 2
  • 26
  • 43
  • yep it's simple) but my MyApiClass contains other files I think at least about 50 data models classes that I need to include and find as well – Matrosov Oleksandr Apr 10 '15 at 11:41
  • @MatrosovAlexander then include all of them! You can't do without :/ – Schemetrical Apr 10 '15 at 11:53
  • yep, I can add it but here is a problem with extensions I've described [here](http://stackoverflow.com/questions/29551648/ios-8-extension-dependencies-issues-importing-one-project-file-to-extension-vie) – Matrosov Oleksandr Apr 10 '15 at 11:57