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

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -