title: Returning multiple dequeueReusableCells in a TableView, Swift
body: <p>The problem I'm trying to solve is to return more than one cell for the loaded task, since i cannot iterate without getting a brand new task loaded. </p>
  
  <p>Each view has one or more cell that is supposed to be loaded for that specific task and i can't seem to solve the problem. Thank you for helping out!</p>
  
  <pre><code>func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
  
      let categoryCells = self.tasks[indexPath.row] as? Task
      var cellChooser: BoredTaskCell!
  
      if selectedTaskCategory == "Movie"{
      let cell = tableView.dequeueReusableCellWithIdentifier("imdbCell") as! BoredTaskCell!
          cell!.selectionStyle = UITableViewCellSelectionStyle.None
          cellChooser = cell
      }
      else if selectedTaskCategory == "Lifestyle" {
          let emailCell = tableView.dequeueReusableCellWithIdentifier("emailCreatorCell") as! BoredTaskCell!
          emailCell!.selectionStyle = UITableViewCellSelectionStyle.None
          cellChooser = emailCell
  
      }
      else {
          let emptyCell = tableView.dequeueReusableCellWithIdentifier("messageCell") as! BoredTaskCell!
          cellChooser = emptyCell
          emptyCell!.selectionStyle = UITableViewCellSelectionStyle.None
      }
  
      return cellChooser
  }
  </code></pre>