CalStoreCalendarStoreViewController Class Reference
Inherits from | UINavigationController |
---|---|
Declared in | CalStoreCalendarStoreViewController.h |
Overview
ViewController that will present a CalendarStore UI to the user.
This ViewController should be presented modally and will handle all interaction and API requests for you.
To quickly get a CalendarStore up and running, define your AuthorizationToken and present an instance of this ViewController.
Creating ViewControllers
+ calendarStoreViewController
Creates a new CalStoreCalendarStoreViewController that shows the start page of the CalendarStore
+ (instancetype)calendarStoreViewController
Return Value
The created CalStoreCalendarStoreViewController that will show the start page of the CalendarStore
Discussion
Note: This is usually the designated initializor.
Declared In
CalStoreCalendarStoreViewController.h
+ calendarStoreViewControllerWithPage:
Creates a new CalStoreCalendarStoreViewController that shows a CalStorePage object.
+ (instancetype)calendarStoreViewControllerWithPage:(CalStorePage *)page
Parameters
page |
The page to show |
---|
Return Value
The created CalStoreCalendarStoreViewController that will show the given page
Discussion
Note: use only when you have a specific page you want to show, otherwise use the [CalStoreCalendarStoreViewController calendarStoreViewController] initializor.
Declared In
CalStoreCalendarStoreViewController.h
+ calendarStoreViewControllerWithPageRequest:
Creates a new CalStoreCalendarStoreViewController that loads a page from a CalStorePageRequest and shows the page.
+ (instancetype)calendarStoreViewControllerWithPageRequest:(CalStorePageRequest *)pageRequest
Parameters
pageRequest |
the request object to fetch the page to show from |
---|
Return Value
The created CalStoreCalendarStoreViewController that will load the page from the given request
Discussion
Note: use only when you have a specific page request you want to show, otherwise use the [CalStoreCalendarStoreViewController calendarStoreViewController] initializor.
Declared In
CalStoreCalendarStoreViewController.h
Showing Button
showsCloseButton
If YES, a close button will be shown which will dismiss the viewcontroller if the calendarStoreDelegate is not set or does not respond to calendarStoreViewControllerDidClose: method. Otherwise the delegate is responsible for dismissing the viewcontroller. Defaults to YES.
@property (nonatomic, assign) BOOL showsCloseButton
Discussion
No close button will be shown if this view controller is not presented modally.
Declared In
CalStoreCalendarStoreViewController.h
showsActionButtons
If YES, the first page of this viewcontroller will show buttons to show subscription information, Restore Purchases and change the Country. Default to YES.
@property (nonatomic, assign) BOOL showsActionButtons
Discussion
Warning: Apps need to have at least one Restore Purchases button in their main UI on a logical place, to pass Apple’s AppReview. Set this property to NO only when not showing this viewcontroller as your main calendar store UI.
Declared In
CalStoreCalendarStoreViewController.h
Delegate
calendarStoreDelegate
The calendar-store delegate.
@property (nonatomic, weak) id<CalStoreCalendarStoreViewControllerDelegate> calendarStoreDelegate
Discussion
The delegate must adopt the CalStoreCalendarStoreViewControllerDelegate formal protocol.
Declared In
CalStoreCalendarStoreViewController.h
Responding To PageItem actions
pageItemHandlerDelegate
The pageItem handler delegate allows to override the actions that are performed when the user interacts with a PageItem (e.g. installing an item).
@property (nonatomic, weak) id<CalStorePageItemHandlerDelegate> pageItemHandlerDelegate
Discussion
The delegate must adopt the CalStorePageItemHandlerDelegate formal protocol.
Declared In
CalStoreCalendarStoreViewController.h