Skip to content

Commit

Permalink
Fixed instructions
Browse files Browse the repository at this point in the history
Provide more accurate instructions on where the popUp var should be declared. Fixes and closes #9
  • Loading branch information
psy2k committed Sep 9, 2015
1 parent aa6632a commit f1bed98
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ NMPopUpView

Simple class for iOS that shows nice popup windows.

To use it in your application, just import `PopViewController.h`, `PopViewController.m` (or `PopViewControllerSwift.swift` if you want to use the swift version), `PopViewController.xib` and `PopViewController_iPad.xib` files (or the `NMPopUpViewController` group from the example project) in your project and call the pop up using this code in Swift:
To use it in your application, just import `PopViewController.h`, `PopViewController.m` (or `PopViewControllerSwift.swift` if you want to use the swift version), `PopViewController.xib` and `PopViewController_iPad.xib` files (or the `NMPopUpViewController` group from the example project) in your project, declare a var for the popUp in your class
`````swift
var popViewController : PopUpViewController = PopUpViewControllerSwift(nibName: "PopUpViewController", bundle: nil)
````````
and call the pop up using this code in Swift:
`````swift
popViewController.title = "This is a popup view"
popViewController.showInView(self.view, withImage: UIImage(named: "typpzDemo"), withMessage: "You just triggered a great popup window", animated: true)
```````````
Expand Down

0 comments on commit f1bed98

Please sign in to comment.