Programmatically add a Navigation Controller to your project

objective C demo swift 3 demo AppDelegate.swift SWIFT 3

ViewController

CustomViewController.swift

OBJECTIVE C The whole idea is that your window strongs UINavigationController, and UINavigationController strongs your main ViewController. The UINavigationController is set up in your AppDelegate. Then your UINavigationController is init-ed with your main view controller. Then, in your main view controller, […]

@public, @private, @protected (objc)

ref – http://stackoverflow.com/questions/844658/what-does-private-mean-in-objective-c The @public, @protected, @private are called accessor modifiers. They provide access visibility to the instance variable. So we declare 3 iVar using @public, @protected, @private.

We then declare a child class, and declare MyFirstClass as a parent class. The basics are laid out here. @public iVars CAN be accessed by the […]

NSURLSession – Out of process upload/download

ref – http://www.techotopia.com/index.php/An_iOS_7_Background_Transfer_Service_Tutorial demo project Background Uploads and Downloads Adding support for background uploads and downloads is surprisingly easy with NSURLSession. Apple refers to them as out-of-process uploads and downloads as the tasks are managed by a background daemon, not your application. Even if your application crashes during an upload or download task, the task […]

NSURLSession basics

ref – http://code.tutsplus.com/tutorials/networking-with-nsurlsession-part-1–mobile-21394 http://code.tutsplus.com/tutorials/networking-with-nsurlsession-part-2–mobile-21581 1) Simple GET of data

2) Downloading a file using NSURLSessionDownloadDelegate protocol So we want to download a file. However, we want to see what percentage we are at, as well as when the file has finished downloading. A session configuration object is nothing more than a dictionary of properties […]

concurrency, asynchronous, parrallelism

ref – http://stackoverflow.com/questions/4844637/what-is-the-difference-between-concurrency-parallelism-and-asynchronous-methods Concurrent and parallel are effectively the same principle as you correctly surmise, both are related to tasks being executes simultaneously although I would say that parallel tasks should be truly multitasking, executed at the same time whereas concurrent could mean that the tasks are sharing the execution thread while still appearing to […]

Concurrency vs Asynchronous

http://blog.stevenedouard.com/asynchronousness-vs-concurrency/ Concurrency There are various different ways of accomplishing concurrency. One of them is parallelism–having multiple CPUs working on the different tasks at the same time. For example, its like having more than 1 chef working on 5 recipes AT THE SAME TIME. But parallelism is not the only way to achieve concurrency. Another is […]