Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/insanj/sublicenseviewcontroller

✒ CocoaPod for attributing open source software! https://insanj.github.io/SUBLicenseViewController/
https://github.com/insanj/sublicenseviewcontroller

cocoapod ios objective-c tableview

Last synced: about 2 months ago
JSON representation

✒ CocoaPod for attributing open source software! https://insanj.github.io/SUBLicenseViewController/

Awesome Lists containing this project

README

        

# SUBLicenseViewController

[![Version](https://img.shields.io/cocoapods/v/SUBLicenseViewController.svg?style=flat)](http://cocoadocs.org/docsets/SUBLicenseViewController)
[![License](https://img.shields.io/cocoapods/l/SUBLicenseViewController.svg?style=flat)](http://cocoadocs.org/docsets/SUBLicenseViewController)
[![Platform](https://img.shields.io/cocoapods/p/SUBLicenseViewController.svg?style=flat)](http://cocoadocs.org/docsets/SUBLicenseViewController)

Incredibly simple license view controller for iOS. **Makes it really easy to attractively present acknowledgements for open source libraries within your app.** You know, the ones that come with all that 3rd party code you use?

![](Screenshots/first.png) ![](Screenshots/second.png)

## Usage

SUBLicenseViewController *licenseViewController = [[SUBLicenseViewController alloc] init];
[self.navigationController pushViewController:licenseViewController animated:YES];

SUBLicenseViewController will automatically parse and add your [CocoaPods acknowledgements files](https://github.com/CocoaPods/CocoaPods/wiki/Acknowledgements) as long as you add it to `Copy Bundle Resources` like so:

![](Screenshots/instructions.jpg)

and then you can have it automatically copied every `pod install` by adding this to the bottom of your Podfile:

post_install do | installer |
require 'fileutils'
FileUtils.cp_r('Pods/Target Support Files/Pods-XXX/Pods-XXX-acknowledgements.plist', 'XXX/Acknowledgements.plist', :remove_destination => true)
end

To run the example project, clone the repo, and run `pod install` from the Example directory first.

## Installation

SUBLicenseViewController is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:

pod "SUBLicenseViewController"

## Author

Julian (insanj) Weiss, [email protected]

## License

SUBLicenseViewController is available under the MIT license. See the LICENSE file for more info.