Skip to content

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

Closed
@hackiftekhar

Description

@hackiftekhar
Owner
No description provided.

Activity

self-assigned this
on Oct 14, 2014
hackiftekhar

hackiftekhar commented on Oct 15, 2014

@hackiftekhar
OwnerAuthor

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

dongmai

dongmai commented on Apr 15, 2016

@dongmai

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

hackiftekhar

hackiftekhar commented on Apr 15, 2016

@hackiftekhar
OwnerAuthor

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

dongmai

dongmai commented on Apr 15, 2016

@dongmai

@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

hackiftekhar commented on Apr 15, 2016

@hackiftekhar
OwnerAuthor

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

dongmai

dongmai commented on Apr 15, 2016

@dongmai

No, I didn't touch keyboardDistanceFromTextField property.

dongmai

dongmai commented on Apr 15, 2016

@dongmai

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

hackiftekhar

hackiftekhar commented on Apr 15, 2016

@hackiftekhar
OwnerAuthor

Are you sure your scrollView is calculating correct contentSize?

dongmai

dongmai commented on Apr 18, 2016

@dongmai

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

hackiftekhar

hackiftekhar commented on Apr 18, 2016

@hackiftekhar
OwnerAuthor

Then could you please share a demo project?

forsan

forsan commented on Jun 27, 2016

@forsan

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

hackiftekhar commented on Jun 28, 2016

@hackiftekhar
OwnerAuthor

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

NikKovIos

NikKovIos commented on Aug 23, 2017

@NikKovIos

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

ankitjaiswal1994 commented on Sep 26, 2018

@ankitjaiswal1994
    IQKeyboardManager.sharedManager().canAdjustAdditionalSafeAreaInsets = true

Adding this to appdelegate resolved my problem.

pradnyadikle4

pradnyadikle4 commented on Dec 14, 2020

@pradnyadikle4

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

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @forsan@hackiftekhar@dongmai@NikKovIos@ankitjaiswal1994

      Issue actions

        Showing black space between UIKeyboard and View due to Sliding up Keyboard above View position. · Issue #93 · hackiftekhar/IQKeyboardManager