Tag Archives: tutorial

defer swift – what is defer in swift ?

defer swift – what is defer in swift ? It’s similar to the finally{} black used in C++ and Java. That means the code in defer will run anyways no matter what.

 

willSet method swift programming – how it works ?

willSet method swift programming The code that’s written in this method is run anytime outside the initializer.

On setting up square sideLength, it will set the triangle sideLength by self. There’s another method didSet as well and that we will see in later on posts.

Variable – how to declare variable in swift ?

Variable – how to declare variable in swift ? There are two variables in swift : either holding a constant value through out the program or as a variable value. So based on this : Variables can be written as

constant variables can be written as

 

Automatic reference counting(arc)

Automatic Reference Counting(ARC) is a memory management feature introduced by apple in XCode for building apps using Object oriented languages like Objective C and swift. It simply handles allocation and deallocation of the memory occupied by the objects created by programmer. So, programmer no longer needs to write code for memory management like release and alloc… Read More »

simple activity indicator iOS code

simple activity indicator iOS code

 

Installing OpenCV in Mac OSx tutorial

Installing OpenCV in Mac OSx tutorial – OpenCV 2.4.10 on OSx 10.10 Yosemite Please see the latest blog to install OpenCV 3 on macOS here ! Notes : Consider following suggestions before you start installing OpenCV on your Mac 1. Do not use any “beta” versions – for both OpenCV and XCode (Please Avoid / Use stable… Read More »