How remove white space between table rows in swift
<p>I'm trying to remove blank rows from the table.
When a row it is blank, for example, without text, the line has no contents, but creates a space. I would like to eliminate this space?</p>

<pre><code>func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
    let cell = tableView.dequeueReusableCellWithIdentifier("Cell", forIndexPath: indexPath) as! ArrayDetailTableViewCell

    //configure cell

switch indexPath.row {
    case 0:
        cell.fieldLabel.text = "1."
        cell.valueLabel.text = array.item1
    case 1:
        if array.item2 != "cod" {
            cell.fieldLabel.text = "2."
            cell.valueLabel.text = array.item2
        } else {
            cell.fieldLabel.text = ""
            cell.valueLabel.text = ""
    default:
        cell.fieldLabel.text = ""
        cell.valueLabel.text = ""
    }
</code></pre>

<p>}</p>

<p><a href="http://i.stack.imgur.com/5mvjZ.jpg" rel="nofollow">see here the print</a></p>