Varsha Vijayvargiya
Varsha Vijayvargiya

Reputation: 771

How to do UITableView style and frame in Swift?

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

How to do this in Swift code?

Upvotes: 1

Views: 4890

Answers (1)

ipraba
ipraba

Reputation: 16543

This is the code

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

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

Upvotes: 3

Related Questions