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
pod 'PopUpLib' |
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
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]; |
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
- (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 | |
{ |
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
- (void)popupStoreLibWasClosed:(PopupStoreController *)lib | |
{ | |
/* | |
* Here a user has closed the Pop-up Store controller and it must be dismissed | |
*/ | |
[self dismissViewControllerAnimated:YES completion:nil]; | |
} |
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
objective-c @interface ViewController : UIViewController <PopupStoreControllerDelegate> { } |