iphone camera toolbar
<p>I am making a iPhone camera app where I am adding my custom buttons at the bottom. .</p>

<pre><code>picpicker.showsCameraControls = NO;
picpicker.navigationBarHidden = NO;
</code></pre>

<p>Basically I want my app to look like the camera app that comes with the iPhone so that the users can keep taking multiple pictures or videos, plus I will add some additional buttons/features to it as well.</p>

<p>What I want to ask is that when I launch my app</p>

<ul>
<li>I created an overlay</li>
<li>In the overlay I added a toolbar</li>
<li>In the toolbar I added two custom buttons -Take Pic, -Done</li>
</ul>

<p>I got the Done function to get implemented properly but how do I implement Take pic button function. </p>

<pre><code>UIBarButtonItem *takePicButton = [[UIBarButtonItem alloc] initWithTitle:@"Take Pic" style:(UIBarButtonItemStyleBordered) target:self action:@selector(takePictureWithCamera)];

    UIBarButtonItem *cancelPicButton = [[UIBarButtonItem alloc] initWithTitle:@"Done" style:(UIBarButtonItemStyleBordered) target:self action:@selector(cancelPictureWithCamera)];


NSArray *items = [NSArray arrayWithObjects: takePicButton, cancelPicButton, nil];
[toolbar setItems:items animated:NO];


[overlayview addSubview:toolbar];
</code></pre>

<p>...
...</p>

<pre><code>-(IBAction)cancelPictureWithCamera 
{
     NSLog(@"INSIDE cancelPictureWithCamera Function");

    [self dismissModalViewControllerAnimated:YES];
}

-(IBAction)takePictureWithCamera 
{
     NSLog(@"INSIDE takePictureWithCamera Function");

    ?????
//I can't do this as the Xcode doesn't like it
[self imagePickerController];


}


-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{ ......
........
</code></pre>
