I am trying to create a UITableViewCell with a quick, in my delegate method cellForRowAtIndexPath,
the code is simple, as in Objective-c, just trying to quickly transform the language.
I get an error in this line
var cell:UITableViewCell = tableView.dequeueReusableCellWithIdentifier(cellIdentifier) as UITableViewCell if(cell == nil) { let cell: UITableViewCell = UITableViewCell(style: UITableViewCellStyle.Subtitle,reuseIdentifier:cellIdentifier) }
UITableViewCell error does not convert to "MirrorDisposition"
I was looking for examples, the code was like this:
if !cell {let cell: UITableViewCell = UITableViewCell(style: UITableViewCellStyle.Subtitle,reuseIdentifier:cellIdentifier) }
but also gives an error.
What am I doing wrong?
source share