Category Archives: Swift

Swift is the new language introduced by Apple and is used for developing application in iOS platform.

Passing Data between View Controllers

      No Comments on Passing Data between View Controllers

A ViewController in an application is seldom standalone in nature. They require data from ViewControllers in front and from those behind them, this leaves us with two types of data passing Forward Data passing Backward data passing For discussing both kinds of data passing we have two ViewCotrollers ASViewController ASViewControllerB… Read more »

String length in Swift

      No Comments on String length in Swift

To get the string length in swift we have two options depending on swift version Swift 3 yourString.characters.count //EXAMPLE if yourString.characters.count == 0{ //do something } 2. Swift 4 yourString.count //EXAMPLE if yourString.count == 0{ //do something }      

Swift 3 UIColor utilities : Random Hex color codes, Random UIColor

Simple  to use swift 3 functions which are very useful in development and testing. 1.Generating random UIColor in Swift 3: Function returns random UIColor each time func randomUIColor(alpha:CGFloat!)-> UIColor { return UIColor.init(red:(CGFloat(arc4random_uniform(256))/255.0), green:CGFloat(arc4random_uniform(256))/255.0, blue: (CGFloat(arc4random_uniform(256))/255.0), alpha: alpha) } 2.Random HEX Color code in Swift 3 : Function returns random 3 char… Read more »

Apple into BLE and WiFi aided indoor positioning

In WWDC 2014  session 708 Apple gave a introduction about indoor positioning. The indoor positioning is a area which cannot be covered using GPS as the signals are not expected to be accurate enough inside steal and concrete structure.So the the available signals were WiFi and beacons using BLE.

UITableView Tutorial : Creating a simple app in swift

This article has been updated for Swift 3 One of the most versatile UI elements which you come across in iOS development is UITableView.With a combination of custom cell and animation its possibilities are endless.From fancy menu to image scroll you must have found it at many places. In fact… Read more »