Category: Swift
-
Apple TV vs Roku
An Apple TV is a small-sized black plastic box that connects to your television set via an HDMI cable and connects to your home wireless network. It gives users access to Internet videos from the comfort of their homes. It has a three buttoned remote control and streaming is enhanced extensively from Netflix to youtube […]
-
Types of URLSession tasks in iOS
Within a URLSession, we create tasks that currently upload data to server or retrieve data from server. The URLSession API provides three types of tasks. Data tasks: Data tasks send and receive data using NSData objects. They are intended for short and often interactive requests to server. Upload tasks: Upload tasks are similar to data […]
-
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.
-
Types of URLSession in iOS
URLSessions are responsible for sending and receiving HTTP requests. Tasks within the given URL system share a common configuration object, which defines connection behaviour like maximum number of allowed connections, whether to allow connections to cellular network and so on. iOS provides us with the following types of URLSessions for us to enable data transfer. […]
-
URLSession in iOS
The URLSession class and related classes provide an API for downloading data from and uploading data to endpoint indicated by URLs. The API allows our app to perform background downloads when app isn’t running or it is in suspended state.
-
Type ‘NSNotification.Name’ has no member ‘UIResponder’ Error iOS
Delete the text NSNotification.Name. written before the UIResponder to remove the error.
-
Data types in Swift
Swift provides us with both built-in and user defined data types. The most common data types available with Swift are as follows: Integer Float Double Boolean Optional Tuple Character String