Swift UIColor utilities : Random Hex colour codes, Random UIColor

Simple to use swift functions which are very useful in development and testing.

1. Generating random UIColor in Swift: 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 Hex colour code each time.

Read more

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 UITableView is so versatile that you can truly divide UI in two parts those which can be made using UITableView and those which cannot.I must admit in one of my lazy spur i rotated UITableView using CGAffineTransform to implement horizontal scroll.

Read more

NEED A JOB? NEED TO HIRE? NEED HELP?

Join group of Software Professionals

iOS DEVELOPER’S DEN