Simple Feedback库,由fladdict/AAMFeedback fork而来。
pod 'AAMFeedback', :git => 'https://github.com/PlusR/AAMFeedback.git'
查看示例
AAMFeedbackViewController *feedbackViewController = [[AAMFeedbackViewController alloc] init];
feedbackViewController.toRecipients = @[@"[email protected]"];
feedbackViewController.ccRecipients = nil;
feedbackViewController.bccRecipients = nil;
UINavigationController *feedbackNavigation = [[UINavigationController alloc] initWithRootViewController:feedbackViewController];
[self presentViewController:feedbackNavigation animated:YES completion:nil];
AAMFeedbackViewController是UITableViewController的子类。
您可以将自定义的AAMFeedbackViewController设置到Storyboard中的视图控制器。
更多细节,请查看示例中的FeedbackTableViewController。
当通过CocoaPods使用AAMFeedback时,您应该按以下设置进行自定义本地化。
[AAMFeedbackViewController setAlwaysUseMainBundle:YES];
您需要手动创建/复制AAMLocalizable.strings到您的项目。
示例项目
感谢将lproj目录移动到Appirater.bundle,以使用CocoaPods(由 eagar 推送,Pull Request #129 · arashpayan/appirater。)
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
新BSD许可证