-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProfileHeader.m
More file actions
39 lines (33 loc) · 882 Bytes
/
ProfileHeader.m
File metadata and controls
39 lines (33 loc) · 882 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
//
// ProfileHeader.m
// TwitterClient
//
// Created by Jessica Ko on 4/6/14.
// Copyright (c) 2014 Jessica Ko. All rights reserved.
//
#import "ProfileHeader.h"
@implementation ProfileHeader
- (id)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
NSArray *arrayOfViews = [[NSBundle mainBundle] loadNibNamed:@"ProfileHeader" owner:self options:nil];
if ([arrayOfViews count] < 1) {
return nil;
}
if (![[arrayOfViews objectAtIndex:0] isKindOfClass:[UICollectionViewCell class]]) {
return nil;
}
self = [arrayOfViews objectAtIndex:0];
}
return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
// Drawing code
}
*/
@end