diff --git a/TPKeyboardAvoiding/TPKeyboardAvoidingCollectionView.m b/TPKeyboardAvoiding/TPKeyboardAvoidingCollectionView.m index 68fe5006..24755127 100644 --- a/TPKeyboardAvoiding/TPKeyboardAvoidingCollectionView.m +++ b/TPKeyboardAvoiding/TPKeyboardAvoidingCollectionView.m @@ -37,6 +37,7 @@ - (id)initWithFrame:(CGRect)frame collectionViewLayout:(UICollectionViewLayout * } -(void)awakeFromNib { + [super awakeFromNib]; [self setup]; } diff --git a/TPKeyboardAvoiding/TPKeyboardAvoidingScrollView.m b/TPKeyboardAvoiding/TPKeyboardAvoidingScrollView.m index 81f753ac..e8113918 100644 --- a/TPKeyboardAvoiding/TPKeyboardAvoidingScrollView.m +++ b/TPKeyboardAvoiding/TPKeyboardAvoidingScrollView.m @@ -29,6 +29,7 @@ -(id)initWithFrame:(CGRect)frame { } -(void)awakeFromNib { + [super awakeFromNib]; [self setup]; }