-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUndoView.m
More file actions
31 lines (29 loc) · 909 Bytes
/
Copy pathUndoView.m
File metadata and controls
31 lines (29 loc) · 909 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
//
// UndoView.m
// Borker
//
// Created by Aaron Baker on 9/30/13.
// Copyright (c) 2013 Borker Innovation. All rights reserved.
//
#import "UndoView.h"
@interface UndoView ()
@property (weak, nonatomic) IBOutlet UILabel *undoLabel;
@end
@implementation UndoView
- (id)initWithFrame:(CGRect)frame withBork:(NSDictionary *)bork
{
self = [super initWithFrame:frame];
if (self) {
self.bork = bork;
NSArray *subviewArray = [[NSBundle mainBundle] loadNibNamed:@"UndoView" owner:self options:nil];
UIView *mainView = [subviewArray objectAtIndex:0];
[self addSubview:mainView];
UITapGestureRecognizer *tap =[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(didClickUndo:)];
[self addGestureRecognizer:tap];
}
return self;
}
- (void)didClickUndo:(UITapGestureRecognizer *)tapGesture {
[self.delegate undoView:self];
}
@end