Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 881 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 881 Bytes

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()