Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NSLog will not ouput #35

Closed
heefan opened this issue Mar 24, 2014 · 4 comments
Closed

NSLog will not ouput #35

heefan opened this issue Mar 24, 2014 · 4 comments
Assignees

Comments

@heefan
Copy link

heefan commented Mar 24, 2014

Hi,

I found when I use IQKeyboardManager in my view controller, all the NSLog() cannot give output message, however, when I comment out #import "IQKeyboardManager.h and related IQKeyboard code, my NSLog can give output.

May I know what's the issue? I just use one line [[IQKeyboardManager sharedManager] setEnable:YES]; on UITextView with simplest UIViewController.

Thanks

@heefan
Copy link
Author

heefan commented Mar 24, 2014

I just found NSLog has been redefined in IQKeyboardManagerConstants.h

May I know any special purpose for the following define, or just you want to disable all the output from IQKeyboard? Thanks

/* Set IQKEYBOARDMANAGER_DEBUG=1 in preprocessor macros under build settings to enable debugging.*/
#if !IQKEYBOARDMANAGER_DEBUG
#define NSLog(...)
#endif

@hackiftekhar
Copy link
Owner

removed this line from the IQKeyboardManagerConstants.h and added macro on IQKeyboardManager.h for NSLog.

@hackiftekhar
Copy link
Owner

Please take a look at latest commit.

@heefan
Copy link
Author

heefan commented Mar 24, 2014

noted & thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants