mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-08 08:31:13 +00:00
Expose public screenshot method
This is useful when trying to connect a compose view that is using a custom UIViewController via the delegate
This commit is contained in:
parent
760a8d07b8
commit
deee2db37e
@ -267,6 +267,15 @@ typedef NS_ENUM(NSInteger, BITFeedbackObservationMode) {
|
|||||||
*/
|
*/
|
||||||
@property (nonatomic, readwrite) BOOL showFirstRequiredPresentationModal;
|
@property (nonatomic, readwrite) BOOL showFirstRequiredPresentationModal;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
Return a screenshot UIImage intance from the current visiable screen
|
||||||
|
|
||||||
|
@return UIImage instance containing a screenshot of the current screen
|
||||||
|
*/
|
||||||
|
- (UIImage *)screenshot;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Present the modal feedback list user interface.
|
Present the modal feedback list user interface.
|
||||||
*/
|
*/
|
||||||
|
@ -198,6 +198,10 @@
|
|||||||
|
|
||||||
#pragma mark - Feedback Modal UI
|
#pragma mark - Feedback Modal UI
|
||||||
|
|
||||||
|
- (UIImage *)screenshot {
|
||||||
|
return bit_screenshot();
|
||||||
|
}
|
||||||
|
|
||||||
- (BITFeedbackListViewController *)feedbackListViewController:(BOOL)modal {
|
- (BITFeedbackListViewController *)feedbackListViewController:(BOOL)modal {
|
||||||
if ([self isPreiOS7Environment]) {
|
if ([self isPreiOS7Environment]) {
|
||||||
return [[BITFeedbackListViewController alloc] initWithModalStyle:modal];
|
return [[BITFeedbackListViewController alloc] initWithModalStyle:modal];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user