views:

734

answers:

1

i have add a subView to UITableView in my application,after adding, the tableViewCell still clickable,how to prevent this?pls help

+1  A: 

If I understood your problem this time, if you can make the subview the size of the screen, then you just need to set userInteractionEnabled to TRUE on the subview.

Tested it with a simple UITableView and a UIImageView over it. If I disable the userInteractionEnabled then the willSelectRowAtIndexPath of the tableView delegate is called, if I set it to TRUE nothing happens.

Alexandre L Telles
i donot want my tableView not clickable at all time, jus when i add the subview above the tableView and it just unclickable. the problem i have is when i add a new view , the tableView was behind but still can click and link to corresponding viewthe viewcontroller i used is tableViewController
issac