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

How to do this in Swift code?

Larme
  • 22,070
  • 5
  • 50
  • 76

1 Answers1

3

This is the code

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

P.S: Probably you should take a swift tour.

ipraba
  • 16,335
  • 3
  • 56
  • 58