tamastimar / VTAcknowledgementsViewController

Ready to use “Acknowledgements”/“Licenses” view controller for CocoaPods.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VTAcknowledgementsViewController

Ready to use “Acknowledgements”/“Licenses”/“Credits” view controller for CocoaPods.

Tested on Travis CI: Build Status

iPhone screenshot 1 iPhone screenshot 2

How to Install

This project is only useful if you use CocoaPods, so let’s assume that you’re indeed using CocoaPods.

  1. Add pod 'VTAcknowledgementsViewController' in your Podfile.
  2. Import the Pods-acknowledgements.plist file from the generated Pods folder to your main app project (so you need to run pod install at least once before using this pod; don’t copy the file itself, just add a reference).
    This file is now generated at Pods/Target Support Files/Pods-{project}/Pods-{project}-acknowledgements.plist (cf. #28, #31).
    You can automate that step from your Podfile, as pointed out by @billyto.

How to Use

The VTAcknowledgementsViewController instance is usually pushed to an existing UINavigationController.

VTAcknowledgementsViewController *viewController = [VTAcknowledgementsViewController acknowledgementsViewController];
viewController.headerText = NSLocalizedString(@"We love open source software.", nil); // optional
[self.navigationController pushViewController:viewController animated:YES];

If your .plist file is named something other than Pods-acknowledgements.plist (e.g. if you’re using fancy build targets), you can initialize the view controller with a custom path.

NSString *path = [[NSBundle mainBundle] pathForResource:@"Pods-MyTarget-acknowledgements" ofType:@"plist"];
VTAcknowledgementsViewController *viewController = [[VTAcknowledgementsViewController alloc] initWithAcknowledgementsPlistPath:path];

Requirements

VTAcknowledgementsViewController requires iOS 5.0 and above, and uses ARC.

Credits

VTAcknowledgementsViewController was created by Vincent Tourraine, with help from our contributors.

License

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

About

Ready to use “Acknowledgements”/“Licenses” view controller for CocoaPods.

License:MIT License


Languages

Language:Objective-C 79.4%Language:Shell 16.9%Language:C 3.2%Language:Ruby 0.5%