// // JXFeedShowView.m // shiku_im // // Created by 123 on 2020/5/26. // Copyright © 2020 Reese. All rights reserved. // #import "JXFeedShowView.h" @interface JXFeedShowView() @property (weak, nonatomic) IBOutlet UIView *blackView2; @end @implementation JXFeedShowView +(instancetype)XIBJXFeedShowView{ return [[NSBundle mainBundle]loadNibNamed:@"JXFeedShowView" owner:self options:nil].firstObject; } -(void)awakeFromNib{ [super awakeFromNib]; self.konwBtn22.layer.cornerRadius=4; self.konwBtn22.layer.masksToBounds=YES; self.backView.backgroundColor=[UIColor colorWithWhite:0.0 alpha:0.3]; self.blackView2.backgroundColor=[UIColor colorWithWhite:0.0 alpha:0.2]; // [self.blackView2 addGestureRecognizer:[[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(closeView)]]; // [self.konwBtn addTarget:self action:@selector(closeView) forControlEvents:UIControlEventTouchUpInside]; } - (void)closeView{ [self removeFromSuperview]; } -(void)showView{ JXFeedShowView *show=[JXFeedShowView XIBJXFeedShowView]; show.backgroundColor=[UIColor colorWithWhite:0.0 alpha:0.6]; show.frame=[UIScreen mainScreen].bounds; [[UIApplication sharedApplication].keyWindow addSubview:show]; } @end