0 votes
423 views
asked in Objective C by
Hi

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

1 Answer

0 votes
answered by (8.2k points)
hi Trythis code

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

Categories

...