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

Showing black space between UIKeyboard and View due to Sliding up Keyboard above View position. #93

Closed
hackiftekhar opened this issue Oct 14, 2014 · 15 comments
Assignees
Labels

Comments

@hackiftekhar
Copy link
Owner

No description provided.

@hackiftekhar hackiftekhar self-assigned this Oct 14, 2014
@hackiftekhar
Copy link
Owner Author

Added preventShowingBottomBlankSpace bool to not show bottom blank space between UIkeyboard and View. preventShowingBottomBlankSpace default to YES.

@dongmai
Copy link

dongmai commented Apr 15, 2016

Seems it doesn't work on iOS 9.3. Whatever I set the property to false or true, it wont work.

@hackiftekhar
Copy link
Owner Author

Could you please share an screenshot of issue you are getting?

@dongmai
Copy link

dongmai commented Apr 15, 2016

@hackiftekhar , thanks for response quickly , please check the attached. You can see the black bar at the bottom.
The code used:IQKeyboardManager.sharedManager().preventShowingBottomBlankSpace = true

simulator screen shot apr 15 2016 10 33 13 am

@hackiftekhar
Copy link
Owner Author

Hmm, looks like you set keyboardDistanceFromTextField to something about 100-200, but still this shouldn't happen.

@dongmai
Copy link

dongmai commented Apr 15, 2016

No, I didn't touch keyboardDistanceFromTextField property.

@dongmai
Copy link

dongmai commented Apr 15, 2016

I used a ScrollView there to make it scrollable to select fields.

@hackiftekhar
Copy link
Owner Author

Are you sure your scrollView is calculating correct contentSize?

@dongmai
Copy link

dongmai commented Apr 18, 2016

Actually I didn't touch contentSize, I do auto layout config all on Storyboard. It displays fine when keyboard isn't showing. Weird!!!

@hackiftekhar
Copy link
Owner Author

Then could you please share a demo project?

@forsan
Copy link

forsan commented Jun 27, 2016

Same issue here. iOS 9.3 before this version its working correctly.
preventShowingBottomBlankSpace = false or true same behavior.

screen shot 2016-06-27 at 8 57 16 pm

simulator screen shot jun 27 2016 8 56 51 pm

@hackiftekhar
Copy link
Owner Author

@forsan @dongmai Could you please share a demo project so that I can debug it?

hackiftekhar added a commit that referenced this issue Jul 12, 2016
@NikKovIos
Copy link

NikKovIos commented Aug 23, 2017

Same issue still exists.
(I changed the backgroud color from black to white with
UIApplication.shared.keyWindow?.backgroundColor = UIColor.white)

ezgif com-video-to-gif

@ankitjaiswal1994
Copy link

    IQKeyboardManager.sharedManager().canAdjustAdditionalSafeAreaInsets = true

Adding this to appdelegate resolved my problem.

@pradnyadikle4
Copy link

pradnyadikle4 commented Dec 14, 2020

Adding
viewdidappear
textField.becomeFirstResponder()

and

https://stackoverflow.com/questions/4374436/how-to-detect-when-keyboard-is-shown-and-hidden/27087733#27087733
and

@objc func keyboardWillAppear() {
    //Do something here
    
    self.payTextView.frame.origin.y += self.view.safeAreaInsets.bottom
}

@objc func keyboardWillDisappear() {
    //Do something here
    self.payTextView.frame.origin.y -= self.view.safeAreaInsets.bottom

}

fixed my issue.

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

No branches or pull requests

6 participants