12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- //
- // CoaApplyProtocolCell.m
- // LN_School
- //
- // Created by EchoShacolee on 2017/12/12.
- // Copyright © 2017年 Danson. All rights reserved.
- //
- #import "CoaApplyProtocolCell.h"
- #import "CoaApplyProtocolVC.h"
- NSString * const XLFormRowDescriptorTypeLeeSureProtocal = @"XLFormRowDescriptorTypeLeeSureProtocal";
- @implementation CoaApplyProtocolCell
- +(void)load
- {
- [XLFormViewController.cellClassesForRowDescriptorTypes setObject:NSStringFromClass([CoaApplyProtocolCell class]) forKey:XLFormRowDescriptorTypeLeeSureProtocal];
- }
- - (void)configure
- {
- [super configure];
- self.selectionStyle = UITableViewCellSelectionStyleNone;
- UIImage *img = [[UIImage imageNamed:@"selected_h"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
- [_sureBtn setImage:img forState:UIControlStateSelected];
- }
- - (void)update
- {
- [super update];
- }
- - (void)formRowDescriptorValueHasChanged:(XLFormRowDescriptor *)formRow oldValue:(id)oldValue newValue:(id)newValue{
- //不知道什么时候掉。外面改??
- }
- - (IBAction)Readprotocal:(id)sender {
- CoaApplyProtocolVC *vc = [[CoaApplyProtocolVC alloc]init];
- [self.formViewController navPushHideTabbarToVC:vc];
- }
- - (IBAction)sureBtn:(id)sender {
- _sureBtn.selected = !_sureBtn.isSelected;
- self.agree = _sureBtn.selected?@"1":@"0";
- self.rowDescriptor.value = self.agree;
- }
- @end
|