mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-29 22:50:42 +00:00
Add example code on how to present a modal Feedback Compose UI with pre filled items
This commit is contained in:
parent
c48ac5b66c
commit
dff3539534
@ -180,7 +180,18 @@ typedef enum {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
Create an feedback compose view
|
Create an feedback compose view
|
||||||
|
|
||||||
|
Example to show a modal feedback compose UI with prefilled text
|
||||||
|
|
||||||
|
BITFeedbackComposeViewController *feedbackCompose = [[BITHockeyManager sharedHockeyManager].feedbackManager feedbackComposeViewController];
|
||||||
|
|
||||||
|
[feedbackCompose prepareWithItems:
|
||||||
|
@[@"Adding some example default text and also adding a link.",
|
||||||
|
[NSURL URLWithString:@"http://hockeayyp.net/"]]];
|
||||||
|
|
||||||
|
feedbackCompose.modalPresentationStyle = UIModalPresentationFormSheet;
|
||||||
|
[self presentViewController:feedbackCompose animated:YES completion:nil];
|
||||||
|
|
||||||
@return `BITFeedbackComposeViewController` The compose feedback view controller,
|
@return `BITFeedbackComposeViewController` The compose feedback view controller,
|
||||||
e.g. to push it onto a navigation stack.
|
e.g. to push it onto a navigation stack.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user