20 lines
593 B
Objective-C
20 lines
593 B
Objective-C
//
|
|
// UISegmentedControl+RACSignalSupport.m
|
|
// ReactiveObjC
|
|
//
|
|
// Created by Uri Baghin on 20/07/2013.
|
|
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
|
|
//
|
|
|
|
#import "UISegmentedControl+RACSignalSupport.h"
|
|
#import <ReactiveObjC/RACEXTKeyPathCoding.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
|