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
Post a Comment