Skip to content

Latest commit

 

History

History
73 lines (52 loc) · 3.65 KB

File metadata and controls

73 lines (52 loc) · 3.65 KB

LGViewControllers

Classes extends abilities of UITableViewController, UICollectionViewController, and more.

  • LGScrollViewController is view controller with LGScrollView as root view, that has LGPlaceholderView and LGRefreshView by default. View controller can watch for show/hide keyboard actions and scroll to first responder view without any manipulation.
  • LGTableViewController can do everything like LGScrollViewController, more than that it can reload table view asynchronously, without freezing UI.
  • LGCollectionViewController can do everything like LGScrollViewController, more than that it has easy initialization methods, to faster setup layout.
  • LGWebViewController is view controller with LGWebView as root view, that has LGPlaceholderView by default. View controller has easy initialization methods, to use it without subclassing.
  • LGViewControllerAnimator is class that implement slide animation between view controllers.

Installation

With source code

With CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries in your projects. See the "Get Started" section for more details.

Podfile

platform :ios, '6.0'
pod 'LGViewControllers', '~> 1.0.0'

Usage

In the source files where you need to use the library, import the header file:

#import "LGViewControllers.h"

Or you can use sublibraries separately, depend of your needs:

#import "LGScrollViewController.h"
#import "LGTableViewController.h"
#import "LGCollectionViewController.h"
#import "LGWebViewController.h"

#import "LGScrollView.h"
#import "LGTableView.h"
#import "LGCollectionView.h"
#import "LGWebView.h"

#import "LGViewControllerAnimator.h"

More

For more details try Xcode Demo Project and see files:

Repos / Mirrors

License

Copyright (c) 2015 Grigorii Lutkov <grigorii@lutkov.dev>

Licensed under the MIT License