Inherits from SPAdvertisementViewController : UIViewController
Conforms to UIAlertViewDelegate
Declared in SPOfferWallViewController.h
SPOfferWallViewController.m

Overview

SPOfferWallViewController is a subclass of SPAdvertisementViewController that requests and shows SponsorPay’s Mobile OfferWall.

In order to present itself it requires that you pass to it an instance of one of your own UIViewController subclasses that will act as the OfferWall parent. @see showOfferWallWithParentViewController:

It will notify its delegate when it’s closed. @see SPOfferWallViewControllerDelegate.

Tasks

Other Methods

Other Methods

Properties

delegate

Delegate conforming to the SPOfferWallViewControllerDelegate protocol that will be notified when the OfferWall is closed.

@property (nonatomic, assign) id<SPOfferWallViewControllerDelegate> delegate

Discussion

Delegate conforming to the SPOfferWallViewControllerDelegate protocol that will be notified when the OfferWall is closed.

Declared In

SPOfferWallViewController.h

Instance Methods

dismissAnimated:

Dismisses the presented advertisement.

- (void)dismissAnimated:(BOOL)animated

Parameters

animated

Whether the dismissal should be animated.

Discussion

Dismisses the presented advertisement.

Declared In

SPAdvertisementViewController.h

init

Please don’t initialize this class directly, rather access it through [SponsorPaySDK offerWallViewController] or [SponsorPaySDK offerWallViewControllerForCredentials:]

- (id)init

Discussion

Please don’t initialize this class directly, rather access it through [SponsorPaySDK offerWallViewController] or [SponsorPaySDK offerWallViewControllerForCredentials:]

Declared In

SPOfferWallViewController.h

showOfferWallWithParentViewController:

Presents the SponsorPay Mobile OfferWall as a child view controller of your own view controller.

- (void)showOfferWallWithParentViewController:(UIViewController *)parentViewController

Parameters

parentViewController

An instance of your own UIViewController subclass that will be used as the parent view controller of the presented OfferWall.

Discussion

Presents the SponsorPay Mobile OfferWall as a child view controller of your own view controller.

Declared In

SPOfferWallViewController.h