Skip to content

Instantly share code, notes, and snippets.

View zidge's full-sized avatar

Zak James zidge

  • Canada
View GitHub Profile
@zidge
zidge / Podfile
Created December 11, 2018 21:45 — forked from karlclement/Podfile
pod 'PopUpLib'
PopupStoreController *controller = [[PopupStoreController alloc]
initWithImage:[UIImage imageNamed:@"your_descired_image.jpg"]
applicationKey:YOUR_PARTNER_KEY
delegate:self];
if (controller) {
[self presentViewController:controller animated:YES completion:NULL];
- (void)popupStoreLibWasOpened:(PopupStoreController *)lib
{
/*
* Here a user has opened the Pop-up Store controller successfully
*/
NSLog(@"Pop-up Store lib was opened");
}
- (void)popupStoreLibUserTappedContinue:(PopupStoreController *)lib
{
- (void)popupStoreLibWasClosed:(PopupStoreController *)lib
{
/*
* Here a user has closed the Pop-up Store controller and it must be dismissed
*/
[self dismissViewControllerAnimated:YES completion:nil];
}
objective-c @interface ViewController : UIViewController <PopupStoreControllerDelegate> { }