Notify new version of enterprise app is available.
It provides:
- Update mode ( Normal / Forec / Skip )
- Customization alert message
[[IUpgrade sharedInstance]setPlistUrlString:@"https://xxx.plist"];
// Normal.
[[IUpgrade sharedInstance]setType:IUpgradeDefault];
// Forec upgrade,it will swizzling appdelegate applicationWillEnterForeground.
[[IUpgrade sharedInstance]setType:IUpgradeForec];
// User can choose skip the version.
[[IUpgrade sharedInstance]setType:IUpgradeSkip];
####Properties####
@property (nonatomic) NSString *alertTitle;
@property (nonatomic) NSString *prefixMessage;
@property (nonatomic) NSString *suffixMessage;
####Method####
[[IUpgrade sharedInstance]setAlertTitle:@"Title" prefixMessage:@"prefix" suffixMessage:@"suffix"];
It will show message that "prefix version suffix".
After main view makeKeyAndVisible.
[[IUpgrade sharedInstance]checkVersion];
IUpgrade is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "IUpgrade"
To run the example project, clone the repo, and run pod install
from the Example directory first.
IUpgrade is available under the MIT license. See the LICENSE file for more info.