A recent project I worked on required a number of UIPopoverController screens. The api allows the implementation of these very easily in just a couple of lines as below:
1 2 3 4 5 |
let popoverViewController = UIPopoverController(contentViewController: viewController) popoverViewController.presentPopoverFromRect(CGRect(x: 195, y: 0, width: 60.0, height: 20), inView: sender, permittedArrowDirections: .Up, animated: true) |
Here i create a UIPopoverController when a button is pressed, using the sender button to presentPopoverFromRect. But what if you want to amend the size […]