TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Sep 2016 |
Maintained by Ryoichi Izumita.
CTFeedback is a library to send feedback for iOS 6.0+.
CTFeedback is on CocoaPods. Simply add:
pod 'CTFeedback'
to your Podfile.
CTFeedbackViewController *feedbackViewController = [CTFeedbackViewController controllerWithTopics:CTFeedbackViewController.defaultTopics localizedTopics:CTFeedbackViewController.defaultLocalizedTopics];
feedbackViewController.toRecipients = @[@"[email protected]"];
feedbackViewController.useHTML = NO;
[self.navigationController pushViewController:feedbackViewController animated:YES];
Device: iPhone 5s (GSM)
iOS: 7.0.4
App: CTFeedbackDemo
Version: 1.0.1
Build: 1.0.1
Device: iPhone 5s (GSM) iOS: 7.0.4 App: CTFeedbackDemo Version: 1.0.1 Build: 1.0.1
You also can use your own server API to send feedback. It can be useful if user has no E-mail account on device or else.
To use custom callback set useCustomCallback
to YES
.
If you want to let user input his E-mail, set showUserEmail
to YES
.
CTFeedbackViewController *feedbackViewController = [CTFeedbackViewController controllerWithTopics:CTFeedbackViewController.defaultTopics localizedTopics:CTFeedbackViewController.defaultLocalizedTopics];
feedbackViewController.showsUserEmail = YES;
feedbackViewController.useCustomCallback = YES;
feedbackViewController.delegate = self;
[self.navigationController pushViewController:feedbackViewController animated:YES];
Also implement delegate function:
- (void)feedbackViewController:(CTFeedbackViewController *)controller
didFinishWithCustomCallback:(NSString *)email
topic:(NSString *)topic
content:(NSString *)content
attachment:(UIImage *)attachment
See demo for more details.
MIT license