problem with UISegmentedControl
<pre><code>-(IBAction)changeSegmentDistance:(UISegmentedControl *)sender{
//  refineDistance=sender;

    switch ([refineDistance selectedSegmentIndex]) {
        case 0:
            valueString=5;
            NSLog(@"value String %d",valueString);  
            break;
        case 1:
            valueString=10;
            NSLog(@"value Stringaaaa %d",valueString);  

        case 2:
            valueString=15;
            NSLog(@"value String %d",valueString);
            break;
        case 3:
            valueString=16;
            NSLog(@"value String %d",valueString);
            break;
        default:
            break;
    }
}
</code></pre>

<p>When i running application and printing on Console </p>

<p>using NSLog...</p>

<p>when i select 0 its printing 5...
when i selected 1 its printing 10 and 15
when i selected 2 its printing 15
when i selected 3 its printed 16..</p>

<p>I dont know why its printing 10 and 15 when i selected 2nd.</p>
