Giter VIP home page Giter VIP logo

ekkeyboardavoiding's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ekkeyboardavoiding's Issues

Doesn't work when focussing on textviews inside of CollectionViewCells

I have a stack of text views, in a collection view that stretches from the top all the way to the bottom of the screen. I've used EKKeyboardAvoiding to enable that behaviour for the collection view. The content size dynamically changes with varying numbers of text views created by the user.

The collection view doesn't seem to react until I start typing! Even then, the scrolling is not animated.

arm64 architecture suport

I have crash in method

- (void)installDidMoveToWindowNotifications
{
    Method didMoveMethod = class_getInstanceMethod([UIScrollView class], @selector(didMoveToWindow));
    IMP originalImplementation = method_getImplementation(didMoveMethod);

    void (^block)(id) = ^(id _self) {
        originalImplementation(_self, @selector(didMoveToWindow));
        [[NSNotificationCenter defaultCenter] postNotificationName:kMoveToWindowNotification
                                                            object:_self];
    };

    IMP newImplementation = imp_implementationWithBlock((__bridge id)((__bridge void*)block));
    method_setImplementation(didMoveMethod, newImplementation);
}

at line:

originalImplementation(_self, @selector(didMoveToWindow)); 

It is not stable bug, but I can reproduce it on the 64-bit simulator.

Is it supposed to work with UITextView?

I'm having problems with UITextView, the view is not automatic scrolling to show the text area.
When I change the UITextView to a UITextField it works properly.

ARC

Please make it ARC compliant
Tnx
Roberto

buggy animation

  1. add two properties
+@property (atomic, assign) NSTimeInterval animationDuration;
+@property (atomic, assign) UIViewAnimationOptions animationOptions;
  1. subscribe to UIKeyboardWillChangeFrameNotification (not UIKeyboardDidChangeFrameNotification
-                                     selector:@selector(keyboardFrameDidChange:)
-                                           name:UIKeyboardDidChangeFrameNotification
+                                     selector:@selector(keyboardFrameWillChange:)
+                                            name:UIKeyboardWillChangeFrameNotification
  1. set animation duration and options
-- (void) keyboardFrameDidChange:(NSNotification *) notification
+- (void) keyboardFrameWillChange:(NSNotification *) notification
 {
     NSValue *keyboardFrameValue = [[notification userInfo] objectForKey:UIKeyboardFrameEndUserInfoKey];
     [self setKeyboardFrame:[keyboardFrameValue CGRectValue]];
+    [self setAnimationDuration:[[[notification userInfo] objectForKey:UIKeyboardAnimationDurationUserInfoKey] doubleValue]];
+    [self setAnimationOptions:[[[notification userInfo] objectForKey:UIKeyboardAnimationDurationUserInfoKey] unsignedIntegerValue]];
  1. fix animations
-    [UIView animateWithDuration:0.3
+    [UIView animateWithDuration:self.animationDuration
+                          delay:0.0f
+                        options:self.animationOptions

Buffer height

It could be nice to have a sort of buffer height, so that this project changes the content size with some extra space leaving room for eg. a textfield.

iOS 7 support

On iOS 7, the keyboard animation is bad, and the insets are lost.

Animations

  • The scroll view does not animate until the keyboard is finished animating
  • The scroll view animation is jerky - it looks like it's completing two separate animations

Lost insets

  • After dismissing the keyboard, the insets (which had been set using the iOS 7 top layout guide) are reset incorrectly, so the scroll view now scrolls all the way up under the UINavigationBar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.