It's an universal solution for keyboard avoiding for iOS that allows automatically change content inset of UIScrollView and it's subclasses. When keyboard is presented you will be able to see all content of your scroll views.
It's an universal solution for keyboard avoiding that automatically changes content inset of your
UIScrollViewclasses. When keyboard appears you will be able to see all content of your scroll views.
UIScrollView+EKKeyboardAvoidingcategory to your project
To enable keyboard avoiding you have to set
contentSizeof your scroll view and enable keyboard avoiding using category method
UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:[[self view] bounds]]; [scrollView setContentSize:[scrollView frame].size]; ... [scrollView setKeyboardAvoidingEnabled:YES];
To disable keyboard avoiding provide
Works on iPhone/iPad iOS 5.0+