Click on the already selected segment control swift
问题 I have an UISegmentedControl with 4 segments. When it is selected, it should pop up view. And when the pop up dismissed, and trying to click on same segment index it should again show the pop up. By using following does not have any action on click of same segment index after pop up dissmissed. segHeader.addTarget(self, action: Selector("valuechange:"), forControlEvents: .AllEvents) or segHeader.addTarget(self, action: Selector("valuechange:"), forControlEvents: .ValueChanged) 回答1: After lot