Common method in Swift

1. Check for any field empty in NSDictionary class func checkforEmptyValueinDictioanty(dic:NSDictionary)-> Bool{ for (keyVal, dataVal) in dic {   if (dataVal.length()==0){                 println("\(keyVal): \(dataVal.length())")                 return false             }                 ... Continue Reading →


Use HexColor in Swift as a color

Add it in your class  extension UIColor {    convenience init(red: Int, green: Int, blue: Int) {        assert(red >= 0 && red <= 255, "Invalid red component")        assert(green >= 0 && green <= 255, "Invalid green component")        assert(blue >= 0 && blue <= 255, "Invalid blue... Continue Reading →

Creating Sliding Menu with iOS SlidingMenu Component

IntroductionThis a component which is a menu has several buttons coming from the right and left side of the screen with an animation. Here is a small video that will give you the idea:Click here for non HTML5 Video supported browsersIntegrating SlidingMenuFirst you have to import SlidingMenu.h in your view controller “h” file.You have to... Continue Reading →

Create a free website or blog at

Up ↑

%d bloggers like this: