From 1b36238cbdadc9611938ac0abb4564784c0b5c35 Mon Sep 17 00:00:00 2001 From: Matt Hupman Date: Thu, 6 Feb 2014 23:17:13 -0500 Subject: [PATCH] Add initWithFrame: implementation to MBContactPicker to support usage outside of a NIB context. --- MBContactPicker/MBContactPicker.m | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/MBContactPicker/MBContactPicker.m b/MBContactPicker/MBContactPicker.m index be209ac..fdd58dd 100644 --- a/MBContactPicker/MBContactPicker.m +++ b/MBContactPicker/MBContactPicker.m @@ -30,6 +30,15 @@ @interface MBContactPicker() @implementation MBContactPicker +- (id)initWithFrame:(CGRect)frame +{ + self = [super initWithFrame:frame]; + if (self) { + [self setup]; + } + return self; +} + - (void)awakeFromNib { [self setup];