Skip to content

Instantly share code, notes, and snippets.

@andreamazz
Created January 12, 2015 09:18
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreamazz/5ab0b4fd667ef912dce6 to your computer and use it in GitHub Desktop.
Save andreamazz/5ab0b4fd667ef912dce6 to your computer and use it in GitHub Desktop.
Quick setup of AMPopTip with Swift
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var cardView: UIView!
var popTip = AMPopTip()
override func viewDidLoad() {
super.viewDidLoad()
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
}
override func viewDidAppear(animated: Bool) {
super.viewDidAppear(animated)
popTip.showText("Hello!", direction: AMPopTipDirection.Down, maxWidth: 260, inView: self.view, fromFrame:cardView.frame)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment