title: Swift configure custom cell
body: <p>I have this code in uitableview controller:</p>
  
  <pre><code>var results: [Item] = []
  ...
  func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
      let cell = tableView.dequeueReusableCellWithIdentifier("OrderCell") as! OrderTableViewCell!
      cell.item = results[indexPath.row]
      return cell
  }
  </code></pre>
  
  <p>and OrderTableViewCell.swift:</p>
  
  <pre><code>class OrderTableViewCell: UITableViewCell {
  
  
      var item: Item! {
          didSet {
              self.setupCell()
          }
      }
  
      @IBOutlet var itemNo: UILabel!
      @IBOutlet var itemPrice: UILabel!
  
      override func awakeFromNib() {
          super.awakeFromNib()
      }
  
      override func setSelected(selected: Bool, animated: Bool) {
          super.setSelected(selected, animated: animated)
      }
  
      func setupCell() {
          itemNo.text = order.document_no
          itemPrice.text = order.sum
      }
  
  }
  </code></pre>
  
  <p>Now, i need to know is this good way to setup cell(with <code>didSet</code>), or it is better to fill this fields <code>itemNo</code> and <code>itemPrice</code> from uitableview controller?</p>