开发者

Going Back after connectionDidFinishLoading

I have a question, (Basically same as this one which remained UN-answered

I'm writ开发者_如何学Going some methods that call a JSON API, and receive a response, each method will create an HTTPRequest, but the data received will not be available in the method, but will be available in connectionDidFinishLoading.

How can i use the data now? I have different methods, each one receive something else, but i cannot control the data received because it's inside connectionDidFinishLoading.

i.e.

login (perform HTTPRequest)

getCustomerId (perform HTTPRequest)

getTextsforCustomer (perform HTTPRequest) ... ...

i want to do some actions with the JSON response already in the login/getCustomerId... methods.

Hope it's clear.

Thanks in advance.

Dror.


How about storing those values somewhere. Like in instance variables of a common object?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜