CalStoreStyledPageViewControllerDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | CalStoreStyledPageViewController.h |
Overview
The CalStoreStyledPageViewControllerDelegate
protocol describes the interface CalStoreStyledPageViewController
delegates must adopt to respond to events.
Changing Country
– styledPageViewController:willChangeCountry:
Called when the user changed the country of the calendar store and before the changes will be applied. The return value of this method will be used as the new country.
- (NSString *)styledPageViewController:(CalStoreStyledPageViewController *)viewController willChangeCountry:(NSString *)location
Parameters
viewController |
the CalStoreStyledPageViewController the user interacted with. |
---|---|
location |
the new country the user wants to change to |
Return Value
Return the country the Store should change to. If you don’t want to override the country to a different value, return location or nil.
Discussion
If implemented, you must return the new country code the store should change to. Return nil or location
to change
to the country the user just picked.
Declared In
CalStoreStyledPageViewController.h
– styledPageViewController:didChangeCountry:
Called when the user changed the country of the store and after the changes are applied. The store will be refreshed.
- (void)styledPageViewController:(CalStoreStyledPageViewController *)viewController didChangeCountry:(NSString *)location
Parameters
viewController |
the CalStoreStyledPageViewController the user interacted with. |
---|---|
location |
the new country the store changed to |
Declared In
CalStoreStyledPageViewController.h
Changing Language
– styledPageViewController:willChangeLanguage:
Called when the user changed the language of the calendar store and before the changes will be applied. The return value of this method will be used as the new language.
- (NSString *)styledPageViewController:(CalStoreStyledPageViewController *)viewController willChangeLanguage:(NSString *)locale
Parameters
viewController |
the CalStoreStyledPageViewController the user interacted with. |
---|---|
locale |
the new language the user wants to change to |
Return Value
Return the language the Store should change to. If you don’t want to override the language to a different value, return locale or nil.
Discussion
If implemented, you must return the new language code the store should change to. Return nil or locale
to change
to the language the user just picked.
Declared In
CalStoreStyledPageViewController.h
– styledPageViewController:didChangeLanguage:
Called when the user changed the language of the store and after the changes are applied. The store will be refreshed.
- (void)styledPageViewController:(CalStoreStyledPageViewController *)viewController didChangeLanguage:(NSString *)locale
Parameters
viewController |
the CalStoreStyledPageViewController the user interacted with. |
---|---|
locale |
the new language the store changed to |
Declared In
CalStoreStyledPageViewController.h