rizumita/CTFeedback
Tentang
Library to send feedback for iOS. Swift version https://github.com/rizumita/CTFeedbackSwift
Pengembangan web dan aplikasiPertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- 0
- dalam 15 hari
- 0
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliCTFeedback
If your app supports over iOS9.0 and written in swift, you can use CTFeedbackSwift -
CTFeedback is a library to send feedback for iOS 6.0+.

Install
CTFeedback is on CocoaPods. Simply add:
pod 'CTFeedback'
to your Podfile.
Example
CTFeedbackViewController *feedbackViewController = [CTFeedbackViewController controllerWithTopics:CTFeedbackViewController.defaultTopics localizedTopics:CTFeedbackViewController.defaultLocalizedTopics];
feedbackViewController.toRecipients = @[@"[email protected]"];
feedbackViewController.useHTML = NO;
[self.navigationController pushViewController:feedbackViewController animated:YES];
Sample Output
###Plaintext Email:
Device: iPhone 5s (GSM)
iOS: 7.0.4
App: CTFeedbackDemo
Version: 1.0.1
Build: 1.0.1
###HTML Email:
<tr><td>Device:</td><td><b>iPhone 5s (GSM)</b></td></tr> <tr><td>iOS:</td><td><b>7.0.4</b></td></tr> <tr><td>App:</td><td><b>CTFeedbackDemo</b></td></tr> <tr><td>Version:</td><td><b>1.0.1</b></td></tr> <tr><td>Build:</td><td><b>1.0.1</b></td></tr>
Custom Feedback via your server API
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.
License
MIT license
Jelajahi proyek terkait
Memuat…