// // KBMonthCenterTipView.m // YouHuiProject // // Created by jcymac on 2018/6/13. // Copyright © 2018年 kuxuan. All rights reserved. // #import "KBMonthCenterTipView.h" @interface KBMonthCenterTipView() @property (weak, nonatomic) IBOutlet UILabel *title1; @property (weak, nonatomic) IBOutlet UILabel *content1; @property (weak, nonatomic) IBOutlet UILabel *title2; @property (weak, nonatomic) IBOutlet UILabel *content2; @end @implementation KBMonthCenterTipView -(void)setType:(NSInteger)type{ NSString *typeStr=@""; if (type==1) { typeStr=@"结算"; self.content1.text=@"本月内所有确认收货的订单收益\n下个月25日结算后,转入到余额中"; self.content2.text=@"上月内所有确认收货的订单收益\n本月25日结算后,转入到余额中"; }else{ typeStr=@"预估"; self.content1.text=@"本月内创建的所有订单收益"; self.content2.text=@"上个月内创建的所有订单收益"; } self.title1.text=[NSString stringWithFormat:@"-本月%@收入-",typeStr]; self.title2.text=[NSString stringWithFormat:@"-上月%@收入-",typeStr]; } @end