VXPromotionViewController is a simple inline and cross promotion display for your iOS 7 app. It can load the app information from the Apple AppStore or from your own JSON source. You can specify specific apps or load available apps for a publisher.
VXPromotionViewController features:
- iPhone and iPad distinct UIs
- full landscape orientation support
Minor fixes for iOS 13
Removing current app from list is now configurable
Activity indicator Support for affiliate code Better iPad support Bug squashing
Move to resource bundles
Some minor changes to improve compatability with IOS10
Added loading indicator in status bar for longer running tasks Fixed automatic language error for certain locales Added localisations (thanks for corrections) Recompiled and fixed warnings under XCode 7.2.1
If you want to use VXPromotionViewController with CocoaPods
pod 'VXPromotionViewController', :head
- Drag the
VXPromotionViewController/VXPromotionViewController
folder into your project. #import "VXPromotionViewController.h"
(see sample Xcode project in /Demo
)
Just like any UIViewController, VXPromotionViewController can be pushed into a UINavigationController stack: If you specify your app id, a rating and share button is displayed
VXPromotionViewController *promoViewController = [[VXPromotionViewController alloc] initWithAddress:@"https://www.swift.ch/api/ch/de"];
promoViewController.appID = @"499346672";
[self.navigationController pushViewController:promoViewController animated:YES];
It can also be presented modally using VXPromotionModalViewController
:
VXPromotionModalViewController *promoViewController = [[VXPromotionModalViewController alloc] initWithArrayOfAppIDs:@[@"499346672", @"450499218", @"742018969"]];
promoViewController.appID = @"499346672";
[self presentViewController:promoViewController animated:YES completion:NULL];
VXPromotionViewController is based on Sam Vermettes SVWebViewController. VXPromotionViewController is brought to you by Swift Management AG and contributors to the project. If you have feature suggestions or bug reports, feel free to help out by sending pull requests or by creating new issues. If you're using VXPromotionViewController in your project, attribution is always appreciated.