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.
- Download repository, then add LGViewControllers directory to your project.
- Also you need to install libraries:
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.
platform :ios, '6.0'
pod 'LGViewControllers', '~> 1.0.0'
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"For more details try Xcode Demo Project and see files:
- LGScrollViewController.h and LGScrollView.h
- LGTableViewController.h and LGTableView.h
- LGCollectionViewController.h and LGCollectionView.h
- LGWebViewController.h and LGWebView.h
- LGViewControllerAnimator.h
Copyright (c) 2015 Grigorii Lutkov <grigorii@lutkov.dev>
Licensed under the MIT License