iphone - dismissModalView doesn't respond to touches -



iphone - dismissModalView doesn't respond to touches -

in myappdelegate, when button pressed presents modal view:

- (void) showinfopanel:(id)sender {

infoviewcontroller = [[infoviewcontroller alloc] init]; uinavigationcontroller *infonavcontroller = [[uinavigationcontroller alloc] init]; infonavcontroller.navigationbarhidden = yes; [window addsubview:infonavcontroller.view]; [infonavcontroller presentmodalviewcontroller:infoviewcontroller animated:yes];

}

in infoviewcontroller have dismiss modal view:

- (void) exitinfopanel:(id)sender { [self.parentviewcontroller dismissmodalviewcontrolleranimated:yes];

}

although works, myappdelegate window doesn't respond touches anymore.

instead in infoviewcontroller if:

[self.view removefromsuperview];

it respond touches lose animation of dismissing modal view.

what doing wrong, why doesn't respond touches when modalview dismissed? ?

thanks

iphone

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -