CPDAcknowledgements 1.0.0

CPDAcknowledgements 1.0.0

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布上次发布2016 年 4 月

Orta Therox 维护。



什么是 CPDAcknowledgements

CPDAcknowledgements 是一组 iOS 项目的 View Controllers,用于轻松提供应用中使用的库的致谢。

它提供了一个 API,允许您轻松添加个别贡献者和库。您还可以轻松自定义页面的样式。

CPDContribution *orta = [[CPDContribution alloc] initWithName:@"Orta" websiteAddress:@"http://orta.github.io" role:@"Behind a wheel"];
orta.avatarAddress = @"https://1.gravatar.com/avatar/f116cb3be23153ec08b94e8bd4dbcfeb?d=https%3A%2F%2Fidenticons.github.com%2F243e8373034964abf7c8a8e57d4df724.png&r=x&s=86";

CPDContribution *fabio = [[CPDContribution alloc] initWithName:@"Fabio Pelosin" websiteAddress:@"http://twitter.com/fabiopelosin" role:@"Back Seat Driver"];
fabio.avatarAddress = @"https://0.gravatar.com/avatar/b6dde1a78e6215a592768c1e78a54adc?d=https%3A%2F%2Fidenticons.github.com%2Fbdc4e72be51d566c2fc9564ed8182611.png&r=x&s=86";

CPDContribution *kyle = [[CPDContribution alloc] initWithName:@"Kyle Fuller" websiteAddress:@"http://twitter.com/kylefuller" role:@"Somewhere in the boot"];
NSArray *contributors = @[orta, fabio, kyle];

CPDAcknowledgementsViewController *acknowledgementsViewController = [[CPDAcknowledgementsViewController alloc] initWithStyle:nil acknowledgements:nil contributions:contributors];
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:acknowledgementsViewController];

演示项目

要运行示例项目,请首先克隆仓库,然后从项目目录运行 pod install,或运行 pod try CPDAcknowledgements

安装

CPDAcknowledgements 通过 CocoaPods 提供,要安装它,只需将以下行添加到您的 Podfile 中。

pod "CPDAcknowledgements"

您需要在 Podfile 中包含 plugin "cocoapods-acknowledgements",例如示例项目的 Podfile。

plugin 'cocoapods-acknowledgements'

target "Demo Project" do
    pod "CPDAcknowledgements", :path => "../CPDAcknowledgements.podspec"

    # These pods are used only for giving us some data
    pod "ORStackView"
    pod "IRFEmojiCheatSheet"

    target "Demo ProjectTests" do
    inherit! :search_paths

    pod 'Specta',      '~> 1.0'
    pod 'Expecta',     '~> 1.0'
    pod 'OCMockito',   '~> 1.0'
  end
end

作者

Orta Therox, [email protected] Fabio Pelosin, [email protected]

致谢

灵感来自 @orta/life#12VTAcknowledgementsViewController

许可证

CPDAcknowledgements 根据 MIT 许可证提供。有关更多信息,请参阅 LICENSE 文件。