قالب وردپرس درنا توس
Home / IOS Development / Where to put API calls? : iOSProgramming

Where to put API calls? : iOSProgramming



I create a simple weather program. I came to the section where I have to call a weather monkey and analyze JSON so that I can display real data.

The problem is that I do not really know where to put my API calls.

I have a .wrap file of "weather" struct, and a ViewController. Should I put the API calls in ViewController, or should I create another .swift file for it?


Source link