//分段控件的隐藏事件接口
-(IBAction) IsHiddenSwitch:(id)sender;
//分段控件的隐藏事件实现
-(IBAction) IsHiddenSwitch:(id)sender
{
//UISegmentedControl seg=(UISegmentedControl *)sender;
if([sender selectedSegmentIndex]==0)
{
switch1.hidden=YES;
switch2.hidden=NO;
}
else if([sender selectedSegmentIndex]==1)
{
switch1.hidden=NO;
switch2.hidden=YES;
}
else if([sender selectedSegmentIndex]==2)
{
switch1.hidden=NO;
switch2.hidden=NO;
}
}
-(IBAction) IsHiddenSwitch:(id)sender;
//分段控件的隐藏事件实现
-(IBAction) IsHiddenSwitch:(id)sender
{
//UISegmentedControl seg=(UISegmentedControl *)sender;
if([sender selectedSegmentIndex]==0)
{
switch1.hidden=YES;
switch2.hidden=NO;
}
else if([sender selectedSegmentIndex]==1)
{
switch1.hidden=NO;
switch2.hidden=YES;
}
else if([sender selectedSegmentIndex]==2)
{
switch1.hidden=NO;
switch2.hidden=NO;
}
}