title: Add tooltip pointer in Swift iOS
body: <p>On button click, I want to create tooltip.
  and now I am getting a rectangle.</p>
  
  <p>How do I add a pointer as below image?</p>
  
  <p>Expected: <a href="https://i.stack.imgur.com/Kgemt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Kgemt.png" alt="Expected"></a></p>
  
  <p>Current: <a href="https://i.stack.imgur.com/VskvR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VskvR.png" alt="Current"></a></p>
  
  <p>Following is the code where I am trying to create tooltip like view</p>
  
  <pre><code>var ToolTipView = UIView()
      func tooltip(){
          for view in self.ToolTipView.subviews {
          view.removeFromSuperview()
      }
  
      ToolTipView.removeFromSuperview()
      ToolTipView.frame = CGRect(x:50, y:self.view.bounds.height-150, width:100, height:50)
      ToolTipView.backgroundColor = UIColor(red:0, green:0, blue:0, alpha:0.7)
      ToolTipView.layer.cornerRadius = 5.0
  
      let txtLabel = UILabel(frame: CGRect(x:0, y:2, width:100, height:50))
      txtLabel.text = "Click"
      txtLabel.textAlignment = NSTextAlignment.Center
      txtLabel.textColor = UIColor(red:1, green:1, blue:1, alpha:1)
      txtLabel.font = UIFont(name:"HelveticaNeue", size: 16)
      self.ToolTipView.addSubview(txtLabel)
      self.view.addSubview(ToolTipView)
      self.view.bringSubviewToFront(ToolTipView)
  }
  </code></pre>