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
@IBOutlet weak var webview: UIWebView! | |
var URLPath = "http://genealogistux.com/time/privacy.html" | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
// Do any additional setup after loading the view, typically from a nib. | |
loadURL() | |
} | |
override func didReceiveMemoryWarning() { |
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
// properties | |
@property (strong, nonatomic) IBOutlet UIView *PDFView; | |
@property (weak, nonatomic) IBOutlet UIView *displayView; | |
@property (nonatomic, strong) NSData *pdf; | |
// I have a button on the story board to generate a PDF | |
// it calls this function | |
-(IBAction)createAndSendPDF { | |
self.PDFView.hidden = NO; |