|
|
@ -36,13 +36,13 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
preferredStyle:UIAlertControllerStyleActionSheet];
|
|
|
|
preferredStyle:UIAlertControllerStyleActionSheet];
|
|
|
|
[actionSheet addAction:[OWSAlerts cancelAction]];
|
|
|
|
[actionSheet addAction:[OWSAlerts cancelAction]];
|
|
|
|
|
|
|
|
|
|
|
|
UIAlertAction *takePictureAction = [UIAlertAction
|
|
|
|
// UIAlertAction *takePictureAction = [UIAlertAction
|
|
|
|
actionWithTitle:NSLocalizedString(@"MEDIA_FROM_CAMERA_BUTTON", @"media picker option to take photo or video")
|
|
|
|
// actionWithTitle:NSLocalizedString(@"MEDIA_FROM_CAMERA_BUTTON", @"media picker option to take photo or video")
|
|
|
|
style:UIAlertActionStyleDefault
|
|
|
|
// style:UIAlertActionStyleDefault
|
|
|
|
handler:^(UIAlertAction *_Nonnull action) {
|
|
|
|
// handler:^(UIAlertAction *_Nonnull action) {
|
|
|
|
[self takePicture];
|
|
|
|
// [self takePicture];
|
|
|
|
}];
|
|
|
|
// }];
|
|
|
|
[actionSheet addAction:takePictureAction];
|
|
|
|
// [actionSheet addAction:takePictureAction];
|
|
|
|
|
|
|
|
|
|
|
|
UIAlertAction *choosePictureAction = [UIAlertAction
|
|
|
|
UIAlertAction *choosePictureAction = [UIAlertAction
|
|
|
|
actionWithTitle:NSLocalizedString(@"MEDIA_FROM_LIBRARY_BUTTON", @"media picker option to choose from library")
|
|
|
|
actionWithTitle:NSLocalizedString(@"MEDIA_FROM_LIBRARY_BUTTON", @"media picker option to choose from library")
|
|
|
|