-
Notifications
You must be signed in to change notification settings - Fork 89
/
BFRootView.m
46 lines (36 loc) · 941 Bytes
/
BFRootView.m
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
43
44
45
46
//
// BFRootView.m
// Briefs
//
// Created by Rob Rhyne on 8/19/09.
// Copyright Digital Arch Design, 2009. See LICENSE file for details.
//
#import "BFRootView.h"
@implementation BFRootView
///////////////////////////////////////////////////////////////////////////////
#pragma mark -
#pragma mark NSObject life-cycle
- (id)initWithFrame:(CGRect)frame andViewController:(UIViewController *)controller
{
if (self = [super initWithFrame:frame]) {
// enable user interaction, per documentation
[self setUserInteractionEnabled:YES];
viewController = controller;
self.backgroundColor = [UIColor blackColor];
timer = nil;
}
return self;
}
- (void)dealloc
{
[super dealloc];
}
- (void)cancelGestureTimer
{
if (timer != nil) {
[timer invalidate];
timer = nil;
}
}
///////////////////////////////////////////////////////////////////////////////
@end