Karthik Murugesan Posted on March 19th, 2015

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


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

In Swift, you do this:


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


Leave a reply

Your email address will not be published.