开发者

A question about UISegmentedControl

It seems that UISegmentedControl objects only send out "UIControlEventValueChanged" events. Is it possible to make them emit "UIControlEventTouchDown" events also ?

Have tried to right click the control in IB and then connect the "UIControlEventTouchDown" event option to an 开发者_开发问答IBAction method, but no event is sent out. Have also tried to do it in code using an "action : @selector" statement but also no event.

In both cases, when I change the event to "UIControlEventValueChanged", the event is sent out as expected.

Hope that somebody who is knowledgeable on this can help ...


You could use the addGestureRecognizer: method inherited from UIView

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜