From 6151ed6ac79eedf00182099c33598cd28f4a199c Mon Sep 17 00:00:00 2001 From: moritz haarmann Date: Fri, 11 Apr 2014 15:01:24 +0200 Subject: [PATCH] + Adapted Add Photo Layout to iOS6 style. --- Classes/BITFeedbackComposeViewController.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Classes/BITFeedbackComposeViewController.m b/Classes/BITFeedbackComposeViewController.m index 6f147dcfcd..4ff3b4aad3 100644 --- a/Classes/BITFeedbackComposeViewController.m +++ b/Classes/BITFeedbackComposeViewController.m @@ -183,10 +183,10 @@ // Add Photo Button + Container that's displayed above the keyboard. self.textAccessoryView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(self.view.frame), 44)]; self.textAccessoryView.backgroundColor = [UIColor colorWithRed:0.9f green:0.9f blue:0.9f alpha:1.0f]; - UIButton *addPhotoButton = [UIButton buttonWithType:UIButtonTypeSystem]; + UIButton *addPhotoButton = [UIButton buttonWithType:UIButtonTypeCustom]; [addPhotoButton setTitle:@"+ Add Photo" forState:UIControlStateNormal]; - addPhotoButton.frame = CGRectMake(0, 0, 100, 44); - + [addPhotoButton setTitleColor:[UIColor darkGrayColor] forState:UIControlStateNormal]; + addPhotoButton.frame = CGRectMake(0, 0, CGRectGetWidth(self.view.frame), 44); [addPhotoButton addTarget:self action:@selector(addPhotoAction:) forControlEvents:UIControlEventTouchUpInside]; [self.textAccessoryView addSubview:addPhotoButton];