IQKeyboardManager icon indicating copy to clipboard operation
IQKeyboardManager copied to clipboard

Xcode 7 compiler warnings

Open Blog404DE opened this issue 11 years ago • 6 comments

After compiling the objc-demo i've seen some (new) warnings:

_IQKeyboardReturnKeyHandler.m_

IQKeyBoardManager/IQKeyboardReturnKeyHandler.m:51:17: Method override for the designated initializer of the superclass '-init' not found

_IQTitleBarButtonItem.m_

IQKeyBoardManager/IQToolbar/IQTitleBarButtonItem.m:42:19: Designated initializer invoked a non-designated initializer
IQKeyBoardManager/IQToolbar/IQTitleBarButtonItem.m:42:19: Designated initializer invoked a non-designated initializer
IQKeyBoardManager/IQToolbar/IQTitleBarButtonItem.m:40:1: Designated initializer missing a 'super' call to a designated initializer of the super class
IQKeyBoardManager/IQToolbar/IQTitleBarButtonItem.m:33:17: Method override for the designated initializer of the superclass '-init' not found
IQKeyBoardManager/IQToolbar/IQTitleBarButtonItem.m:33:17: Method override for the designated initializer of the superclass '-initWithCoder:' not found

Maybe somebody have the time to sort this warnings out and fix it :+1:

Blog404DE avatar Sep 10 '15 13:09 Blog404DE

i have the same warning, any fix please?

Piero87 avatar Sep 11 '15 15:09 Piero87

I'm getting same warnings in Xcode 7 GM.

peng90 avatar Sep 14 '15 14:09 peng90

Hi,

Add this in IQTitleBarButtonItem.h :

  • (instancetype)initWithFrame:(CGRect)frame title:(NSString *)title;
  • (instancetype)init NS_UNAVAILABLE;
  • (instancetype)initWithCoder:(NSCoder *)aDecoder NS_UNAVAILABLE;

Regards Robert

Droppix avatar Sep 22 '15 09:09 Droppix

@hackiftekhar Are you working on this enhancement right now? Do we expect any official update for this warnings from your side? @RobertNNms This may resolve the warning temporary (for those who uses podfile).. anyhow thanks for the solution.!! I'm gonna use it..

milan-manwar avatar Sep 30 '15 07:09 milan-manwar

@RobertNNms that fix is not enough, i have also edit this line:

-(instancetype)initWithViewController:(UIViewController*)controller NS_DESIGNATED_INITIALIZER;

to this: -(instancetype)initWithViewController:(UIViewController*)controller;

in IQKeyboardReturnKeyHandler, it's right?

Piero87 avatar Oct 03 '15 15:10 Piero87

Fixed now ac6cbcb0aec00d51a7071f05c6e1a3f651900306.

hackiftekhar avatar Oct 13 '15 12:10 hackiftekhar