Closed zenithscholar closed 8 years ago
Do you want to implement like screen shot?
@IBAction func tappedRightBarButton(sender: UIBarButtonItem) {
let startPoint = CGPoint(x: self.view.frame.width - 60, y: 55)
let label = UILabel(frame: CGRect(x: 0, y: 0, width: self.view.frame.width / 2, height: 50))
label.text = "popover"
label.textAlignment = .Center
let popover = Popover()
popover.show(label, point: startPoint)
}
thank you so much! very useful.
which easiest way to put text inside the label? Thanks!