热更新demo

TPSwitch.h 329B

    // // TPSwitch.h // ThePaperBase // // Created by scar1900 on 15/10/27. // Copyright © 2015年 scar1900. All rights reserved. // #import <UIKit/UIKit.h> @protocol TPSwitchDelegate <NSObject> - (BOOL)switchSuccess:(BOOL)on; @end @interface TPSwitch : UISwitch @property(nonatomic, weak)id<TPSwitchDelegate> delegate; @end