rsattar / CLTokenInputView

A replica of iOS's native contact bubbles UI
MIT License
504 stars 127 forks source link

An optional forwarding Delegate for return key #15

Closed akshaypakanati closed 8 years ago

akshaypakanati commented 8 years ago

@rsattar
I've modified the code inside CLTokenInputView.m to resign keyboard like below.

- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
    [self endEditing:YES];
    return YES;
}

To end editing when user taps on Return key..

But isn't it grateful if we have an optional delegate.!!

rsattar commented 8 years ago

Hey @akshaypakanati you should be able to implement an optional delegate for handling the return behavior of the textfield in 2.3.0. Thanks!

akshaypakanati commented 8 years ago

@rsattar Thank you very much :-) I've updated to latest pod .

talapbekov commented 8 years ago

Hi @rsattar after editing ends the navigation bar doesnt reappear (come down)

basically when you start editing the navigation bar goes up off-screen, and the keyboard appears. when you end editing , the keyboard goes away but the navigation bar stays invisible. Does it have anything to do with CLTokenInputView, or am I missing something . Thank you

rsattar commented 8 years ago

When the keyboard appears, are you scrolling a scroll view manually within your UI, where the automatic navigation bar hiding is enabled?