michaeltyson / TPKeyboardAvoiding

A drop-in universal solution for moving text fields out of the way of the keyboard in iOS

Home Page:http://atastypixel.com/blog/a-drop-in-universal-solution-for-moving-text-fields-out-of-the-way-of-the-keyboard/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Method possibly missing a [super awakeFromNib] call

dwby opened this issue · comments

Hey!
For Xcode 8 I get this warning message for:
TPKeyboardAvoidingScrollView.m
TPKeyboardAvoidingTableView.m
Doesn't seem to impact anything but would be good to know how if I should add

[super awakeFromNib];
to
-(void)awakeFromNib

Cheers

From Apple's API reference for awakeFromNib:

You must call the super implementation of awakeFromNib to give parent classes the opportunity to perform any additional initialization they require. Although the default implementation of this method does nothing, many UIKit classes provide non-empty implementations. You may call the super implementation at any point during your own awakeFromNib method.