-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathViewController.m
More file actions
42 lines (31 loc) · 927 Bytes
/
ViewController.m
File metadata and controls
42 lines (31 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// ViewController.m
// TapBlockView
//
// Created by LiPeng on 16/12/19.
// Copyright © 2016年 LiPeng. All rights reserved.
//
#import "ViewController.h"
#import "ViewActionGestureRecognizer.h"
#import "UIView+KeyAndData.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
UIView *btnView = [[UIView alloc] initWithFrame:CGRectMake(0, 64, 100, 30)];
btnView.backgroundColor = [UIColor yellowColor];
[self.view addSubview:btnView];
btnView.viewKey = @"btnkey";
[btnView viewAction:^(UIView *sender){
NSLog(@"%@", sender.viewKey);
NSLog(@"btntttttt");
NSLog(@"222222222");
}];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end