PromoView Reference
Inherits From: UIView
Declared In: PromoView.h
Overview
Applicasa provides an intelligent promotion platform that allows you to produce numerous types of promotions in order to increase sales. The web console provides all the tools necessary to divide your users into segments and market to them based on specific criteria with event-based promotions, including Deals, Rewards, and Announcements.
PromoView provides a simple example UIView an application can use directly to display Promotions when they are received from the Applicasa service. Alternatively, PromoView can also be used as a starting point from which developers can create their own custom Promotion-displaying UIView classes to ensure promo display matches an application as much as desired.
Tasks
Displaying Promotions
+
promoViewWithPromotion:andFrame:
Properties
promotion
A Promotion object that will be shown to a user.
@property (nonatomic, strong) Promotion *promotion;
Class Methods
promoViewWithPromotion:andFrame:
Method for displaying a Promotion to an application user.
+
(PromoView *) promoViewWithPromotion:(Promotion *)promotion andFrame:(CGRect)frame;
Parameters:
promotion
The Promotion object that is to be displayed to the user.
frame
A CGRect that defines the frame rectangle for the view.
Return Value:
A PromoView object that can be added to the view hierarchy.
Discussion:
Developers familiar with UIView programming should be relatively comfortable with how promoViewWithPromotion:andFrame: works. The frame parameter will be passed to initWithFrame:, and further customizations are made by default to provide a simple presentation that displays the promotional image, with a close button and action button added.