Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calling super for cellForRowAtIndexPath in Swift

I would greatly appreciate it someone could help me with the syntax for calling super to get the UITableViewCell from within func tableView (tableView: UITableView!, cellForRowAtIndexPath indexPath: NSIndexPath!). This is a static table.

override func tableView (tableView: UITableView!, cellForRowAtIndexPath indexPath: NSIndexPath!) -> UITableViewCell! {
//  The Objective-C code is: UITableViewCell *cell = [super tableView:tableView cellForRowAtIndexPath:indexPath];
var cell = super.??
}

I have tried and tried, but cannot seem to get the correct syntax for doing this. Thanks in advance.

like image 573
user1092808 Avatar asked Jun 30 '14 00:06

user1092808


1 Answers

var cell = super.tableView(tableView, cellForRowAt: indexPath)
like image 163
Josh Hinman Avatar answered Oct 24 '22 11:10

Josh Hinman