How can I get the text value of a segment in a UISegmentedControl?

0 votes
420 views
asked Jan 16, 2015 in Objective C by Jak
Hi

  How can I get the text value of a segment in a UISegmentedControl?

1 Answer

0 votes
answered Jan 16, 2015 by admin (8,115 points)
hi Trythis code

UISegmentedControl *seq = (UISegmentedControl*)sender;
    if([[seq titleForSegmentAtIndex:seq.selectedSegmentIndex] isEqualToString:@"Segment"]){
        
    }else{
        
    }
...