V
V
Vladislav Pavlenko2016-02-25 17:04:28
Objective-C
Vladislav Pavlenko, 2016-02-25 17:04:28

How to wait for a response from the server (NSURLSession), so that then draw the collection view?

I can’t figure out how to wait for a response from the server in order to display the received data in the collection view. I am using NSURLSession.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
ManWithBear, 2016-02-25
@pavlenkovs

1) Show empty data / stub
2) Send a request
3) Reload the collection when the server responds
4) ???
5) PROFIT!!!
Any specific problems?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question