Having issue in dismissing modalviewcontroller from UINavigation Controller Done Button
<p>When clicks on done button application crashes and gives message that program received signal SIGABRT.</p>

<p>In the ModalViewController.h delegated protocol and method</p>

<pre><code>@protocol ModalViewDelegate &lt;NSObject&gt;

-(void) dismissModalView:(UIViewController *) viewController;

@end

@interface Infoviewcontroller : UIViewController &lt;ModalViewDelegate&gt;

{
    id&lt;ModalViewDelegate&gt; dismissDelegate;
}

@property (nonatomic, retain) id&lt;ModalViewDelegate&gt; dismissDelegate;

@end
</code></pre>

<p>In modalviewcontroller. m file</p>

<pre><code>@synthesize dismissDelegate;

-(void) dismissModalView:(UIViewController *) viewController;
{

   [self dismissModalViewControllerAnimated:YES];

}
@end
</code></pre>

<p>In done button definition</p>

<pre><code>UIButton* backButton = [UIButton buttonWithType:101]; 
[backButton addTarget:self action:@selector(dismissView:) forControlEvents:UIControlEventTouchUpInside];
[backButton setTitle:@"Done" forState:UIControlStateNormal];

// create button item
UIBarButtonItem* backItem = [[UIBarButtonItem alloc] initWithCustomView:backButton];

// add the button to navigation bar
self.navigationItem.leftBarButtonItem = backItem;
[backItem release];


-(void) dismissView: (id)sender

{
    [UIViewController dismissDelegate];
}
</code></pre>

<p>When clicks on done button application crashes and gives message that program received signal SIGABRT. So i think i m doing something wrong in dismissView method of done button that is why it gives message that UIViewController dismissDelegate unrecognized selector</p>

<p>Help will be appreciated.</p>

<p>Thanks</p>
