title: How to add background image and let it under UITableViewCell in swift?
body: <p>This time the image of background still doesn't fit the scene,this is part of the code <code>friendListCell</code> is the<code>@IBOutlet</code> of the tableViewCell in this scene :</p>
  
  <pre><code>override func viewDidLoad() {
      super.viewDidLoad()
  
      let BackGroundImage:UIImageView = UIImageView(frame: self.friendListCell.bounds)//UIImageView(frame: CGRectMake(0, 0, self.view.frame.width , self.view.frame.height))
      let image: UIImage = UIImage(named: "regularLogin.jpg")!
  
      BackGroundImage.image = image
  
  
      friendListCell.backgroundView = BackGroundImage
  
            fetchRequest.sortDescriptors = [sortDescriptor]
  
  
  
  }
  
  
  override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
  
      switch(segue.identifier)
      {
          case .Some("functionSegue"):
              let functionViewController = segue.destinationViewController as! FunctionsViewController
              functionViewController.client = client!
      default:
          super.prepareForSegue(segue, sender: sender)
      }
  
  
  
  }
  
  //let AppConfig = TransmissionAgreement(first:"first")
  var username:String?
  var password:String?
  var client:TCPClient?
  let fetchRequest = NSFetchRequest(entityName: "Friend")
  let sortDescriptor = NSSortDescriptor(key: "name", ascending: true)
  var result:[AnyObject]?
  var managedObjectContext:NSManagedObjectContext?
  @IBOutlet weak var friendListCell: UITableView!
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/SuidN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SuidN.png" alt="enter image description here"></a></p>