mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
Fixes for iPad and Message composer presentation
This commit is contained in:
parent
4d8ed6b408
commit
478f26a7f6
@ -30,7 +30,7 @@
|
|||||||
#import <UIKit/UIKit.h>
|
#import <UIKit/UIKit.h>
|
||||||
#import "BITHockeyBaseViewController.h"
|
#import "BITHockeyBaseViewController.h"
|
||||||
|
|
||||||
@interface BITFeedbackComposeViewController : BITHockeyBaseViewController <UITextViewDelegate>
|
@interface BITFeedbackComposeViewController : UIViewController <UITextViewDelegate>
|
||||||
|
|
||||||
- (id)init;
|
- (id)init;
|
||||||
|
|
||||||
|
@ -94,11 +94,6 @@
|
|||||||
[self.view addSubview:self.textView];
|
[self.view addSubview:self.textView];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)viewDidUnload {
|
|
||||||
[super viewDidUnload];
|
|
||||||
// Release any retained subviews of the main view.
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)viewWillAppear:(BOOL)animated {
|
- (void)viewWillAppear:(BOOL)animated {
|
||||||
self.manager.currentFeedbackComposeViewController = self;
|
self.manager.currentFeedbackComposeViewController = self;
|
||||||
|
|
||||||
|
@ -154,6 +154,7 @@
|
|||||||
BITFeedbackComposeViewController *composeController = [[[BITFeedbackComposeViewController alloc] init] autorelease];
|
BITFeedbackComposeViewController *composeController = [[[BITFeedbackComposeViewController alloc] init] autorelease];
|
||||||
|
|
||||||
UINavigationController *navController = [[[UINavigationController alloc] initWithRootViewController:composeController] autorelease];
|
UINavigationController *navController = [[[UINavigationController alloc] initWithRootViewController:composeController] autorelease];
|
||||||
|
navController.modalPresentationStyle = UIModalPresentationFormSheet;
|
||||||
|
|
||||||
[self.navigationController presentModalViewController:navController animated:YES];
|
[self.navigationController presentModalViewController:navController animated:YES];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user