怎么用出口集合执行按钮动作

使用出口集合:

- (IBAction)revertTint:(id)sender {
for (UISegmentedControl *swItem in allSegmentCollection) {
    int selectedSegment = swItem.selectedSegmentIndex;
    swItem.segmentedControlStyle = UISegmentedControlStyleBar;
    if (selectedSegment !=-1)
    {
        [swItem setTintColor:nil];
    }
}   

}

执行storyboard的按钮时运行正常。但是我要改用出口集合连接所有的控制部分应该怎么实现?

没明白你什么意思,是想通过代码的方式来给IBOutletCollection中的segmentcontrol添加处理事件吗?