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

UITextView custom inputaccessoryview doesn't show initially #84

Open
jerrin15 opened this issue Mar 10, 2015 · 0 comments
Open

UITextView custom inputaccessoryview doesn't show initially #84

jerrin15 opened this issue Mar 10, 2015 · 0 comments

Comments

@jerrin15
Copy link

Is this working for everyone now? I have a UITextView , which when called brings up my custom input accessory view but its position is not on top of the keyboard. When i drag the auto-translate bar on the keyboard it gets set correctly.So every time on the initial call the input accessory view is placed on top of the keyboard, on interaction with the keyboard it gets set correctly.

I currently used the following code snippets only

self.view.keyboardTriggerOffset = keyboardView.bounds.size.height;

[self.view addKeyboardPanningWithFrameBasedActionHandler:^(CGRect keyboardFrameInView, BOOL opening, BOOL closing) {
    CGRect toolBarFrame = keyboardView.frame;
    toolBarFrame.origin.y = keyboardFrameInView.origin.y - toolBarFrame.size.height;
    keyboardView.frame = toolBarFrame;

} constraintBasedActionHandler:nil];

I also call the
[textView setInputAccessoryView:keyboardView];

in the UITextView shouldbegin method

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

No branches or pull requests

1 participant