Hi, I m adding UIView to cell which has a switch as a subview to it. Now I am not able to interact with the Switch. It does not change to value when I tap on it.
views:
12answers:
1
+1
Q:
Unable to interact with switch when added as subview to UIView and that view as a subview to cell
A:
Check if the view has the userInteractionEnabled
property set to YES.
brutella
2010-10-27 08:06:03
userInteractionEnabled property is YES but then also its not working
Javal Nanda
2010-10-27 08:25:21
please check the property for all views (cell, view, switch...)
brutella
2010-10-27 10:39:05
yes i have kept userInteractionEnabled for all the components :- 1)for cell contentview 2)for view 3) for switch. still i m not able to interact with the switch. whereas if I directly add switch to cell contentview there is no problem.
Javal Nanda
2010-10-28 04:38:40