title: delete custom cell from tableview in swift
body: <p>I am implementing the function to delete custom cell from tableview.<br></p>
  
  <pre><code>func DeleteData(sender : UIButton)
  {
      var dbPath: NSString = NSSearchPathForDirectoriesInDomains(.DocumentDirectory, .UserDomainMask, true)[0] as NSString
      dbPath = dbPath .stringByAppendingPathComponent("BillInfo.sqlite")
      var db = IMDDB()
      db.initWithPath(dbPath);
      var table : UITableView = view.viewWithTag(900) as UITableView
      var btnPosition :  CGPoint = sender.convertPoint(CGPointZero, toView: table)
      var index : NSIndexPath = table.indexPathForRowAtPoint(btnPosition)!
      var customCell = CustomeTableViewCell(style: UITableViewCellStyle.Subtitle, reuseIdentifier:"Cell")
      var name : NSString =  customCell.lblName.text!//will give unexpectedly found nil error
     // println("\(customCell.lblName.text!)")
  }
  </code></pre>
  
  <p><br>
  how can I access all the controllers from custom cell. <br>I have customcell.swift class.<br></p>
  
  <pre><code>override init(style: UITableViewCellStyle, reuseIdentifier: String?)
  {
      super.init(style: UITableViewCellStyle.Default, reuseIdentifier: "Cell")
      imgBill.backgroundColor = UIColor.blackColor()
      btnDelete.setBackgroundImage(UIImage(named: "01-gradient.png"), forState: UIControlState.Normal)
      btnDelete.setTitle(NSLocalizedString("BTN_DELETE", comment: ""), forState: UIControlState.Normal)
      btnDelete.setTitleColor(UIColor.whiteColor(), forState: UIControlState.Normal)
  
      imgBill.setTranslatesAutoresizingMaskIntoConstraints(false)
      lblName.setTranslatesAutoresizingMaskIntoConstraints(false)
      lblType.setTranslatesAutoresizingMaskIntoConstraints(false)
      lblAmount.setTranslatesAutoresizingMaskIntoConstraints(false)
      btnDelete.setTranslatesAutoresizingMaskIntoConstraints(false)
  
      contentView.addSubview(imgBill)
      contentView.addSubview(lblName)
      contentView.addSubview(lblType)
      contentView.addSubview(lblAmount)
      contentView.addSubview(btnDelete)
       // i have already added the constraint on it.
  </code></pre>