make sure the Add Image button is always centered

This is for BITFeedbackComposeViewController
This commit is contained in:
Andreas Linde 2015-09-09 14:02:38 +02:00
parent ff397e876b
commit f8d2dd0178

View File

@ -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) {