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 →

Advertisements

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 →

Objective C Interview question part-2


1.What is latest iOS version?IOS - 6.1.3 (updated on 5/15/13 3:15 AMPacific Daylight Time)2.What is latest Xcode version?Xcode- 4.6.2 (updated on 5/15/13 3:15 AMPacific Daylight Time)  3.What is latest mac os version? Mac- Mountain Lion (updated on 5/15/13 3:15 AMPacific Daylight Time) 4.What is iPad screen size?1024X768 5.what is iPhone screen size?320X480 6.What are the features is IOS 6? 1.Map :beautifully designed from the ground up... Continue Reading →

Objective C Interview question part-2


1.What is latest iOS version?IOS - 6.1.3 (updated on 5/15/13 3:15 AMPacific Daylight Time)2.What is latest Xcode version?Xcode- 4.6.2 (updated on 5/15/13 3:15 AMPacific Daylight Time)  3.What is latest mac os version? Mac- Mountain Lion (updated on 5/15/13 3:15 AMPacific Daylight Time) 4.What is iPad screen size?1024X768 5.what is iPhone screen size?320X480 6.What are the features is IOS 6? 1.Map :beautifully designed from the ground up... Continue Reading →

Objective C interview question


1-How would you create your own custom view?By Subclassing the UIView class.2-Whats fast enumeration?Fast enumeration is a language feature that allows you to enumerate over the contents of a collection. (Your code will also run faster because the internal implementation reducesmessage send overhead and increases pipelining potential.)3-Whats a struct?A struct is a special C data... Continue Reading →

Create a free website or blog at WordPress.com.

Up ↑

%d bloggers like this: