ios - UIImageView added as a subview of a tab is allowing selection of controls under it -
at app starts, first tab selected, consists of uitableview
displaying infos, before displaying uitableview
, tab displaying uiimageview
within viewdidload
method:
viewdidload:
uiimage *image = [uiimage imagenamed:@"splash.png"]; splashimageview = [[uiimageview alloc] initwithimage:image]; splashimageview.frame = cgrectmake(0, 20, 320, 410); [((uitabbarcontroller*)self.parentviewcontroller.parentviewcontroller).view addsubview:splashimageview];
the problem when click on splashimageview
, touch firing didselectrowatindexpath:
delegate method of uitableview
although under splashimageview
, why behavior?
set splashimageview.userinteractionenabled = yes;
also, try setting splashimageview.opaque = yes;
Comments
Post a Comment