react-native-navigation的迁移库

RNNSegmentedControl.m 331B

123456789101112
  1. #import "RNNSegmentedControl.h"
  2. @implementation RNNSegmentedControl
  3. - (void)setTitle:(NSString*)title atIndex:(NSUInteger)index {
  4. NSMutableArray* mutableTitles = [[NSMutableArray alloc] initWithArray:self.sectionTitles];
  5. [mutableTitles setObject:title atIndexedSubscript:index];
  6. [self setSectionTitles:mutableTitles];
  7. }
  8. @end