Created
January 12, 2015 09:18
-
-
Save andreamazz/5ab0b4fd667ef912dce6 to your computer and use it in GitHub Desktop.
Quick setup of AMPopTip with Swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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