blob: 96ea55632e7190a85dfe365f70ec64dc08091b9b [file] [log] [blame] [edit]
//
// UISegmentedControl+RACSignalSupport.m
// ReactiveCocoa
//
// Created by Uri Baghin on 20/07/2013.
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
//
#import "UISegmentedControl+RACSignalSupport.h"
#import "RACEXTKeyPathCoding.h"
#import "UIControl+RACSignalSupport.h"
#import "UIControl+RACSignalSupportPrivate.h"
@implementation UISegmentedControl (RACSignalSupport)
- (RACChannelTerminal *)rac_newSelectedSegmentIndexChannelWithNilValue:(NSNumber *)nilValue {
return [self rac_channelForControlEvents:UIControlEventValueChanged key:@keypath(self.selectedSegmentIndex) nilValue:nilValue];
}
@end