// // XMGLeftHeadView.m // xmgJiSuanQi // // Created by zeng on 2019/10/29. // Copyright © 2019 zeng. All rights reserved. // #import "XMGLeftHeadView.h" @interface XMGLeftHeadView() @end @implementation XMGLeftHeadView -(void)awakeFromNib{ [super awakeFromNib]; self.headIMG.layer.cornerRadius=10; self.headIMG.userInteractionEnabled=YES; [self.headIMG addGestureRecognizer:[[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapView:)]]; // XMGAccountTool *model=[TGFileTool account]; // if (model.id==nil) { // _nameL.text=@"故事大全"; // }else{ // _nameL.text=[NSString stringWithFormat:@"%@",model.title]; // // } _nameL.text=@"故事大全"; } +(instancetype)XIBXMGLeftHeadView{ return [[NSBundle mainBundle]loadNibNamed:@"XMGLeftHeadView" owner:nil options:nil].firstObject; } - (void)tapView:(UIGestureRecognizer *)tap{ if (_xmgLeftHeadViewBlockBtn) { _xmgLeftHeadViewBlockBtn(tap); } } @end