Closed l1k2j3h4g5 closed 8 years ago
I dragged the /Library folder to the Project Navigation.
Then added this code:
let alertVC = PMAlertController(title: "A Title", description: "My Description", image: UIImage(named: "img.png"), style: .Alert) alertVC.addAction(PMAlertAction(title: "Cancel", style: .Cancel, action: { () -> Void in print("Capture action Cancel") })) alertVC.addAction(PMAlertAction(title: "OK", style: .Default, action: { () in print("Capture action OK") })) self.presentViewController(alertVC, animated: true, completion: nil)
to my ViewController.
However, I get this error:
Use of unresolved identifier 'PMAlertController'
Hi @JamesGDEv.
I think that you have to set the target for the library, like that:
Let me know. Thanks -Paolo
I dragged the /Library folder to the Project Navigation.
Then added this code:
to my ViewController.
However, I get this error: