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

How to do this in Swift code?

Larme
  • 24,190
  • 6
  • 51
  • 81

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,485
  • 4
  • 59
  • 58