How to navigate the view in iphone programming?
<p>In my appController's ViewDidLoad, I have done some thing as below</p>

<pre><code>  - (void)viewDidLoad
 {
self.overlayViewController =
    [[[OverlayViewController alloc] initWithNibName:@"OverlayViewController" bundle:nil] autorelease];

// as a delegate we will be notified when pictures are taken and when to dismiss the image picker
self.overlayViewController.delegate = self;

self.capturedImages = [NSMutableArray array];

if (![UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera])
{
    // camera is not on this device, don't show the camera button
    NSMutableArray *toolbarItems = [NSMutableArray arrayWithCapacity:self.myToolbar.items.count];
    [toolbarItems addObjectsFromArray:self.myToolbar.items];
    [toolbarItems removeObjectAtIndex:2];
    [self.myToolbar setItems:toolbarItems animated:NO];
}
}
</code></pre>

<p>I have two methods as below, </p>

<pre><code>- (IBAction)cameraAction:(id)sender
 {
[self showImagePicker:UIImagePickerControllerSourceTypeCamera];
}

- (void)showImagePicker:(UIImagePickerControllerSourceType)sourceType
{
if (self.imageView.isAnimating)
    self.imageView.stopAnimating;

if (self.capturedImages.count &gt; 0)
    [self.capturedImages removeAllObjects];

if ([UIImagePickerController isSourceTypeAvailable:sourceType])
{
    [self.overlayViewController setupImagePicker:sourceType];
    [self presentModalViewController:self.overlayViewController.imagePickerController animated:YES];
}
}
</code></pre>

<p>Now as I click the button, the method will launch the class showing custom view, I want to call this without clicking the button, what should I do ?</p>

<p>I wrote the button coding directly in ViewDidLoad, but not working at all</p>

<p>This code, I took from apple's documentation as example</p>

<p>Help !</p>
