ABReleaseNotesViewController 0.1.1

ABReleaseNotesViewController 0.1.1

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布最新发布2016年3月

Aaron Brethorst 维护。




自从 iOS 7 以来,用户已经可以自动从 App Store 更新他们的应用程序。这对于确保我们的用户始终使用最新版本的产品来说非常棒,但这意味着通知他们关于更新中新增和不同的内容可能会更加困难。ABReleaseNotesViewController 通过在更新后第一次启动时的应用中显示您的 App Store 中应用程序的发布说明来解决这个问题。

ABReleaseNotesViewController 是在您的应用内部显示从 App Store 获取的应用程序发布说明的一种简单易用、相当吸引人的方法。这个项目受到了 https://github.com/iGriever/TWSReleaseNotesView 的启发。我过去曾使用过 TWSReleaseNotesView,它非常好用,但已经有一段时间没有更新了。

Animated GIF demonstrating the project

快速入门

在您的初始化方法或 -viewDidLoad 中创建您的发布说明对象

- (void)viewDidLoad {
  [super viewDidLoad];

  self.releaseNotes = [ABReleaseNotesViewController releaseNotesControllerWithAppIdentifier:@"329380089" title:NSLocalizedString(@"Release Notes", @"")];
}

您的视图出现后,开始检查更新。如果可用更新,您可以立即显示视图控制器,如下所示

[self.releaseNotes checkForUpdates:^(BOOL updated) {
  if (updated) {
      [self presentViewController:self.releaseNotes animated:YES completion:nil];
  }
}];

此外,您还可以向用户展示一个警告或其他类型的非模态用户界面,告知他们如果愿意可以阅读发布说明。

系统要求

iOS 9.0 及以上。应与 tvOS 兼容,但尚未尝试。如果愿意处理一些由 UIStackView 使得变得微不足道的 Auto Layout 问题,支持 iOS 8 应该相当直接。

问题、拉取请求等。

问题、错误修复和新增特性总是受欢迎。优先考虑伴随补丁的问题,但我将尽力跟踪代码中的问题。

待办事项

  • [ ] Cocoapods
  • [ ] Carthage
  • [ ] 发布说明的可选 Markdown 格式化

鸣谢

MIT 许可证

The MIT License (MIT)

Copyright (c) 2016 Aaron Brethorst

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.