Jared Gross
Jared Gross

Reputation: 659

is it possible to change the actions of the UIButtons for the UIImagePickerController.. i.e.(cancel, use, retake..etc...)?

is it possible to change the default actions of the UIButtons for the UIImagePickerController. i.e.(cancel, use, retake, etc.)?

For example, after I take a picture and tap 'use', I am taken to the photo albums view controller. Can I set it up to instead just reload the UIImagePickerController?

Upvotes: 2

Views: 139

Answers (1)

Abdullah Shafique
Abdullah Shafique

Reputation: 6918

UIView *newOverlay = [[UIView alloc] init];
UIButton *newButton = [UIButton buttonWithType:UIButtonTypeCustom];
newButton.frame = CGRectMake(20,40,70,40);
[myButton addTarget:self 
         action:@selector(yourAction:) 
forControlEvents:UIControlEventTouchUpInside];
[newOverlay addSubview:newButton];

picker.cameraOverlayView = newOverlay;

Just keep adding buttons to your newOverlay and set the actions!

Upvotes: 1

Related Questions