According to the documentation, the event which should related to UISegmentedControl
is value changed. Assuming I have a segmented control with previous and next, in my case I should be able to click next more than one time, the default behaviour of UISegmentedControl
will not recognize the successif second click on same segment. SO how to deal with that?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Set the momentary
property of your UISegmentedControl to TRUE
.
You can do that in code or in Interface Builder (there is a checkbox in the Attributes Inspector).