capezzbr/SimpleCam — pull request #1 by dkhamsing (2014-05-19 20:25:41+00:00)
Title: Enable custom controls

``` objc

self.simpleCam = [SimpleCam new];
self.simpleCam.delegate= self;

[self.simpleCam setHideControls:YES];
[self.simpleCam setDisablePhotoPreview:YES];

CGRect frame;
frame.size = CGSizeMake(self.view.frame.size.width, 120);
frame.origin.x = 0;
frame.origin.y = self.view.frame.size.height -frame.size.height;
UIView *overlayView = [[UIView alloc] initWithFrame:frame];
overlayView.backgroundColor = [UIColor blackColor];
overlayView.alpha = 0.3;

UIImage *image = [UIImage imageNamed:@"shutter"];
frame.size = image.size;
frame.origin.x = (overlayView.frame.size.width -frame.size.width)/2;
frame.origin.y = (overlayView.frame.size.height -frame.size.height)/2;
UIButton *button = [[UIButton alloc] initWithFrame:frame];
[button setImage:image forState:UIControlStateNormal];
[button addTarget:self action:@selector(actionPhoto) forControlEvents:UIControlEventTouchUpInside];
[overlayView addSubview:button];
[self.simpleCam.view addSubview:overlayView];

[self presentViewController:self.simpleCam animated:YES completion:nil];

- (void)actionPhoto
{
[self.simpleCam capturePhoto];
}
```