I have defined segmentControl buttons.
@property(nonatomic, strong) SegmentControl *option;
SegmentControl *result = [[SegmentControl alloc] initWithFrame:frame items:@[@"Bad", @"Good"]];
result:self.option.selectedSegmentIndex
why am I getting this error: property 'selectedSegmentIndex' not found on object of type 'segmentControl',
@class SegmentControl;
@protocol SegmentControlDelegate <NSObject>
@optional
- (void)segmentControl:(SegmentControl *)segmentControl didSelectSegment:(UIButton *)segment;
@end
@interface SegmentControl : UIView
@property(nonatomic, assign) BOOL staySelected;
@property(nonatomic, weak) id<SegmentControlDelegate> delegate;
- (id)initWithFrame:(CGRect)frame items:(NSArray *)items;
@end