Returning data from data-grabbing class from web?

后端 未结 3 1126
执念已碎
执念已碎 2021-01-16 09:14

I\'m trying to create a class which will let me get requested data from a web service. I\'m stuck on how to return the values.

// FooClass.m
// DataGrabber i         


        
3条回答
  •  鱼传尺愫
    2021-01-16 09:48

    you could implement notifications for your DataGrabber class that go off any time you receive a certain amount of data (or when the download is finished if you want) and then the notified method (read about Notifications in the documentation) can do any handling you might want.

    Note: it'd be helpful if FooClass was the delegate of DataGrabber

提交回复
热议问题