TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | May 2017 |
Maintained by Jean-Pierre Fourie.
Checks if there is a newer version of your app in the AppStore and alerts the user to update.
One line:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[[ATAppUpdater sharedUpdater] showUpdateWithForce];
return YES;
}
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[[ATAppUpdater sharedUpdater] showUpdateWithConfirmation];
return YES;
}
Custom titles + localization:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
ATAppUpdater *updater = [ATAppUpdater sharedUpdater];
[updater setAlertTitle:NSLocalizedString(@"Nuwe Weergawe", @"Alert Title")];
[updater setAlertMessage:NSLocalizedString(@"Weergawe %@ is beskikbaar op die AppStore.", @"Alert Message")];
[updater setAlertUpdateButtonTitle:@"Opgradeer"];
[updater setAlertCancelButtonTitle:@"Nie nou nie"];
[updater setDelegate:self]; // Optional
[updater showUpdateWithConfirmation];
return YES;
}
Delegate methods:
- (void)appUpdaterDidShowUpdateDialog;
- (void)appUpdaterUserDidLaunchAppStore;
- (void)appUpdaterUserDidCancel;
Manual:
ATAppUpdater
folder into your projectSystemConfiguration.framework
#import "ATAppUpdater.h"
in the required class<ATAppUpdaterDelegate>
protocol if neededCocoaPods:
pod 'ATAppUpdater'
#import "ATAppUpdater.h"
in the required class<ATAppUpdaterDelegate>
protocol if neededATAppUpdater is released under the MIT license. See LICENSE for details.