Created
July 5, 2016 12:38
-
-
Save psaitu/905228c50f1ff5ba5a1487f6dcffed16 to your computer and use it in GitHub Desktop.
Code Snippets For Blog Post -
This file contains hidden or 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 PopUpViewController: UIViewController { | |
| @IBOutlet weak var actionButton: UIButton! | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| // Do any additional setup after loading the view. | |
| self.actionButton.layer.cornerRadius = 4.0 | |
| self.view.layer.cornerRadius = 4.0 | |
| } | |
| override func didReceiveMemoryWarning() { | |
| super.didReceiveMemoryWarning() | |
| // Dispose of any resources that can be recreated. | |
| } | |
| @IBAction func didPressActionButton(sender: AnyObject) { | |
| dismissViewControllerAnimated(true) { | |
| print("Dismissed") | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment