views:

1027

answers:

1

I have a UISegmentedControl that has six segments, I want them to call a method when the value changes, but also when each segment gets a UIControlEventTouchDragIn because I want a UILabel to show up with it's name when the person is trying to select something on it and drags their finger across the control, but the segmented control does not sen this call even when I drag into the thing. Please help. Maybe I need to create UIButtons over the control that call methods upon a drag in, but call the value changed method when they recieve a tap.

A: 

You could just subclass the UISegmentedControl and override - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { return; } method to manage the dragging and location of the touches.

Being that you wouldn't be able to tell which segment the drag is on anyway, it might be better for you to do everything manually with touch and track it using those functions.

mjdth
I wish they made this easier to do. REALLY I DO!!
Jaba