Skip to content

Commit

Permalink
Merge pull request #7 from mbinna/use-initWithCoder-instead-of-awakeF…
Browse files Browse the repository at this point in the history
…romNib

Use initWithCoder: instead of awakeFromNib
  • Loading branch information
jerryhjones committed Mar 20, 2013
2 parents 47d81a5 + 96bafd2 commit 608b73e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions SMPageControl.m
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,15 @@ - (id)initWithFrame:(CGRect)frame
return self;
}

- (void)awakeFromNib
- (id)initWithCoder:(NSCoder *)aDecoder
{
[super awakeFromNib];
[self _initialize];
self = [super initWithCoder:aDecoder];
if (nil == self) {
return nil;
}

[self _initialize];
return self;
}

- (void)dealloc
Expand Down

0 comments on commit 608b73e

Please sign in to comment.