Skip to content

DKHandleScroll keeps track of the keyboard frame, and lets you manage your scroll view insets along with custom views' frames the easy way, handling animations completely transparently for you. It will also help you scrolling down your scroll views with the keyboard when appropriate.

Notifications You must be signed in to change notification settings

darshan2509/DKHandleScroll

Repository files navigation

DKHandleScroll

DKHandleScroll keeps track of the keyboard frame, and lets you manage your scroll view insets along with custom views' frames the easy way, handling animations completely transparently for you. It will also help you scrolling down your scroll views with the keyboard when appropriate.

Screenshot

Just add these files

  1. DKHandleScroll.h
  2. DKHandleScroll.m
  3. UIResponder+FirstResponder.h
  4. UIResponder+FirstResponder.m

#import "DKHandleScroll.h"

Add the following code in viewWillAppear

-(void)viewWillAppear:(BOOL)animated
{
    // Just Add instance of scrollView
    [[DKHandleScroll sharedInstance] makeScrollable:_mainScroll];
}

For Swift

  1. Simply Drag and Drop SwiftScroll.swift file in your project
  2. Add SwiftScroll.sharedInstance().makeScrollable()

About

DKHandleScroll keeps track of the keyboard frame, and lets you manage your scroll view insets along with custom views' frames the easy way, handling animations completely transparently for you. It will also help you scrolling down your scroll views with the keyboard when appropriate.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published