//
// TPSwitch.m
// ThePaperBase
//
// Created by scar1900 on 15/10/27.
// Copyright © 2015年 scar1900. All rights reserved.
//
#import "TPSwitch.h"
@implementation TPSwitch
- (void)setOn:(BOOL)on animated:(BOOL)animated {
if ([self.delegate respondsToSelector:@selector(switchSuccess:)]) {
if ([self.delegate switchSuccess:on]) {
[super setOn:on animated:animated];
}
}
}
@end
|