diff --git a/ApptentiveConnect/source/Custom Views/ATCustomButton.m b/ApptentiveConnect/source/Custom Views/ATCustomButton.m index 07174fa0b..7030096c9 100644 --- a/ApptentiveConnect/source/Custom Views/ATCustomButton.m +++ b/ApptentiveConnect/source/Custom Views/ATCustomButton.m @@ -38,8 +38,10 @@ - (id)initWithButtonStyle:(ATCustomButtonStyle)style { button.titleLabel.font = [UIFont boldSystemFontOfSize:12.0]; button.titleLabel.shadowOffset = CGSizeMake(0.0, -1.0); - [button setTitleShadowColor:[UIColor colorWithRed:63./256. green:63./256. blue:63./256. alpha:1.0] forState:UIControlStateNormal]; [button setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; + [button setTitleShadowColor:[UIColor colorWithWhite:0 alpha:0.8] forState:UIControlStateNormal]; + [button setTitleColor:[UIColor colorWithRed: 0.79 green: 0.86 blue: 0.99 alpha: 1] forState:UIControlStateDisabled]; + [button setTitleShadowColor:[UIColor colorWithWhite:0 alpha:0.5] forState:UIControlStateDisabled]; [button setBackgroundImage:[ATBackend imageNamed:@"at_send_bg"] forState:UIControlStateNormal]; [button setBackgroundImage:[ATBackend imageNamed:@"at_send_highlighted_bg"] forState:UIControlStateHighlighted]; diff --git a/ApptentiveConnect/source/Custom Views/ATSimpleImageViewController.m b/ApptentiveConnect/source/Custom Views/ATSimpleImageViewController.m index 074082a82..f8d1440af 100644 --- a/ApptentiveConnect/source/Custom Views/ATSimpleImageViewController.m +++ b/ApptentiveConnect/source/Custom Views/ATSimpleImageViewController.m @@ -151,7 +151,7 @@ - (IBAction)takePhoto:(id)sender { - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex { if (buttonIndex == 0) { [self chooseImage]; - } else if (buttonIndex == 1) { + } else if (buttonIndex == 1 && [UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) { [self takePhoto]; } }