Karthik Murugesan Posted on March 19th, 2015

Just for my reference documenting some Swift equivalent of Objective-c statements.

OBJECTIVE-C



UITableView *myTableView = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStyleGrouped];


In Swift, you do this:

SWIFT



let myTableView: UITableView = UITableView(frame: CGRectZero, style: .Grouped)


Excerpt From: Apple Inc. “Using Swift with Cocoa and Objective-C.” iBooks. https://itun.es/us/1u3-0.l

(1892)

Leave a reply

Your email address will not be published.