Skip to content

Instantly share code, notes, and snippets.

View brandonbeecroft's full-sized avatar

Brandon Beecroft brandonbeecroft

  • Awesometistic, LLC
  • United States
View GitHub Profile
@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() {
// 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;