URL shared session in iOS

For basic requests, URLSession class provides a shared singleton object to perform default behaviour for creating tasks. We can use this object to fetch data to memory with few lines of code.We don’t create a shared session like other URLSessions, we can access this directly by using its property.

 

 

Advertisements

Leave a Reply