ADLVersionManager 可用于在 iOS 设置面板中显示应用程序的当前版本和构建号。为了让这生效,您需要在应用程序中添加一个 Settings.bundle
并将以下部分添加到其 Root.plist
<dict>
<key>DefaultValue</key>
<string></string>
<key>Type</key>
<string>PSTitleValueSpecifier</string>
<key>Title</key>
<string>Version</string>
<key>Key</key>
<string>adl_appVersion</string>
</dict>
修改您的 AppDelegate.m
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Add the following line:
[ADLVersionManager saveVersionFromMainBundle];
return YES;
}
iOS 6+
Adelanto 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中
pod "Adelanto"
Alex Manarpies | aceontech.com | @aceontech
Adelanto 基于 MIT 许可证。有关更多信息,请参阅 LICENSE 文件。