Skip to content

EverestOpenSource/VTAcknowledgementsViewController

 
 

Repository files navigation

VTAcknowledgementsViewController

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

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).

Note: if you know how to import this file automatically, as part of the pod install process, please let me know.

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 94.7%
  • Ruby 5.3%