danielamitay / DAKeyboardControl

DAKeyboardControl adds keyboard awareness and scrolling dismissal (ala iMessages app) to any view with only 1 line of code.
Other
1.58k stars 214 forks source link

fixed bug, textfield switch to textview cause dead loop #62

Closed aelam closed 8 years ago

aelam commented 10 years ago

see #61

lucabartoletti commented 10 years ago

How i can replicate this bug? Are you applying the addKeyboardPanningWithFrameBasedActionHandler to the textView?

aelam commented 10 years ago

no, please see the demo of the PR I have sent , you can uncomment the 'resignFirstResponder'

Then try to switch textview and text field

在 2014年4月8日,下午4:43,Luca Bartoletti notifications@github.com 写道:

How i can replicate this bug? Are you applying the addKeyboardPanningWithFrameBasedActionHandler to the textView?

— Reply to this email directly or view it on GitHub.

aelam commented 10 years ago

2014-04-08 4 54 00

open your demo project and add these code in it.

    UITextView *t = [[UITextView alloc] initWithFrame:CGRectMake(0, 80, CGRectGetWidth(self.view.bounds), 40)];
    t.text = @"This is a TextView";
    [self.view addSubview:t];

    [self.view addKeyboardPanningWithActionHandler:^(CGRect keyboardFrameInView) {