Skip to content

insanj/SUBLicenseViewController

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SUBLicenseViewController

Version License Platform

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?

Usage

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

SUBLicenseViewController will automatically parse and add your CocoaPods acknowledgements files as long as you add it to Copy Bundle Resources like so:

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. To install it, simply add the following line to your Podfile:

pod "SUBLicenseViewController"

Author

Julian (insanj) Weiss, insanjmail@gmail.com

License

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