Tag: Swift 2

  • Swift Creating Vertical UISlider Programmatically

    Swift Creating Vertical UISlider Programmatically

    This code creating UISlider and turn 90 degrees  anticlockwise with -M_PI_2 in another context for another UIView we could use the same code with M_PI_2  for turning 90 degrees clockwise. I found this easy and useful, worth note.

  • iOS Swift Programming Patterns: Singleton

    iOS Swift Programming Patterns: Singleton

    What is Singleton Pattern? The Singleton pattern is class which initiated once itself and give global access to this created instance. As it has a unique instance, class variables and methods are shared in entire application/namespace. To understand better let’s check where we can use this pattern.

  • iOS Swift Custom Navigation Bar Color

    iOS Swift Custom Navigation Bar Color

    In Swift to change the text or top navigation are colour is not the same as UIBotton methods. The quick example below shows how to set them.