mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-03 21:16:35 +00:00
make sure the Add Image button is always centered
This is for BITFeedbackComposeViewController
This commit is contained in:
parent
ff397e876b
commit
f8d2dd0178
@ -245,7 +245,8 @@
|
||||
[self.addPhotoButton setTitleColor:[UIColor lightGrayColor] forState:UIControlStateDisabled];
|
||||
self.addPhotoButton.frame = CGRectMake(0, 0, CGRectGetWidth(self.view.frame), 44);
|
||||
[self.addPhotoButton addTarget:self action:@selector(addPhotoAction:) forControlEvents:UIControlEventTouchUpInside];
|
||||
|
||||
self.addPhotoButton.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin|UIViewAutoresizingFlexibleRightMargin;
|
||||
|
||||
[self.textAccessoryView addSubview:self.addPhotoButton];
|
||||
|
||||
if (!self.hideImageAttachmentButton) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user