12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- //
- // 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
|