我有一个UISegmentedControl,它的“Valuechanged”事件在InterfaceBuilder中连接以调用我的Controller的-(IBAction)segmentChangeAction:(id)sender;当用户点击控件更改所选段时,无论是在iOS4还是iOS5中,都会按预期调用segmentChangeAction。当我通过segmentedControl.selectedSegmentIndex=newIndex;以编程方式更改所选段时,在iOS4上调用segmentChangeAction并且该段反射(reflect)了新的选择。然而在iOS5上s
我有一个UISegmentedControl,它的“Valuechanged”事件在InterfaceBuilder中连接以调用我的Controller的-(IBAction)segmentChangeAction:(id)sender;当用户点击控件更改所选段时,无论是在iOS4还是iOS5中,都会按预期调用segmentChangeAction。当我通过segmentedControl.selectedSegmentIndex=newIndex;以编程方式更改所选段时,在iOS4上调用segmentChangeAction并且该段反射(reflect)了新的选择。然而在iOS5上s