Asynchronous vs Synchronous vs Threading in an iPhone App

后端 未结 8 1486
失恋的感觉
失恋的感觉 2021-01-30 05:28

I\'m in the design stage for an app which will utilize a REST web service and sort of have a dilemma in as far as using asynchronous vs synchronous vs threading. Here\'s the sce

8条回答
  •  我在风中等你
    2021-01-30 06:11

    I'd recommend the asychronous way, no question. Then, load the information only when needed, and use a delegate system to give that information to the correct object.

    You don't want to block the UI. Ever. And loading information asynchronously allows you better control over what's happening so you can throw up an error message if needed.

提交回复
热议问题