CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

AppFaqs 1.0.1

AppFaqs 1.0.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Sep 2015

Maintained by Matt Sencenbaugh.



AppFaqs 1.0.1

  • By
  • Matt Sencenbaugh

Installation

This iOS SDK is meant to be used in conjunction with a subscription at https://appfaqs.co.

Step 1)

Add AppFaqs to your project via CocoaPods by adding the following to your Podfile:

pod "AppFaqs"

Step 2)

Import AppFaqs and make sure the view controller AppFaqs will be presented from conforms to the APFDelegate

#import <AppFaqs/APFaqs.h>
@import UIKit;

@interface APFViewController : UIViewController<APFDelegate>

@end

Step 3)

Show the FAQ screen and ensure you have implemented the delegate callback

- (IBAction)launchFAQPressed:(id)sender {
    UIViewController *viewController = [APFaqs faqWithApiKey:@"YOURAPIKEYHERE" withDelegate:self];
    [self presentViewController:viewController animated:YES completion:^{}];
}

#pragma mark - APFDelegate
-(void)closeButtonWasPressed {
    [self dismissViewControllerAnimated:YES completion:^{}];
}

Step 4)

Grin broadly from ear to ear, drink a beer, put a sock on your nose, or whatever it is you do to celebrate! If you need help with the installation please email [email protected]

Example Project

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

Requirements

iOS8+

Author

Matt Sencenbaugh, [email protected]

License

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