iphone presentModalViewController
<p>I have an app, inside that an <code>UIViewController</code> is attached on the <code>UIWindow</code>.
on the view of <code>UIViewController</code>, i have added a button and a uiview_1 of size 100x80.
this uiview_1 contains another uiview_2 as subview of same size and this uiview_2 contains a <code>UIImageView</code> or a <code>UIlable</code> at runtime (both <code>UIImageView</code> and <code>UIlable</code> are <code>userinteraction</code> enabled)</p>

<p>now on the touch/click of <code>UIImageView</code>, i want to show a new view using <code>presentModalViewController</code>, the problem is the view is shown and using back button on the navigation bar i come to the previous/main screen.
here the problem come in picture, now i am unable to touch the button or the UIImageView.
both are not responding, but app is not crashed and nor frozen. </p>

<p>what is wrong in that?</p>

<p>Plz help in this...</p>

<p>-----  <strong>EDIT</strong>:</p>

<p>Approach First: </p>

<pre><code>SWVController *swvController = [[SWVController alloc] init];
UINavigationController *viewNavController = [[UINavigationController alloc] initWithRootViewController:swvController];
UIViewController *pushController = [[UIViewController alloc] init];
UIWindow *win = [[UIApplication sharedApplication] keyWindow];
[win addSubview:pushController.view];
[pushController presentModalViewController:viewNavController animated:YES];
</code></pre>

<p>In the swvController i have back button that calls the dismissModelViewController on click >> result is the Main screen ctrls are not responding to touch – sandy 3 hours ago</p>

<p>Second approach: </p>

<pre><code>SWVController *swvController = [[SWVController alloc] init];
UINavigationController *viewNavController = [[UINavigationController alloc] initWithRootViewController:swvController];
UIViewController *pushController = [[UIViewController alloc] init];
[self addSubview:pushController.view];
[pushController presentModalViewController:viewNavController animated:YES];
</code></pre>

<p>In the swvController i have back button that calls the dismissModelViewController on click >> result is the swvController's back button on navbar is not responding – sandy 3 hours ago</p>

<p>3rd approach: </p>

<pre><code>SWVController *swvController = [[SWVController alloc] init];
UINavigationController *viewNavController = [[UINavigationController alloc] initWithRootViewController:swvController];
SampleAppAppDelegate *appdel = [[UIApplication sharedApplication] delegate]; [appdel.viewController presentModalViewController:viewNavController animated:YES];
</code></pre>

<p>>> result is working fine, but the problem is i dont want to use SampleAppAppDelegate,i want to give my small Uiview (100x80) as a ctrl to other person , where my ctrl will not able to get the AppDelegate of thet app at run time. – sandy 3 hours ago</p>
