Latest 1.0.0
Homepage https://github.com/Friend-LGA/LGViewControllers
License MIT
Platforms ios 6.0, requires ARC
Dependencies LGRefreshView, LGPlaceholderView
Authors

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:

License

LGViewControllers is released under the MIT license. See LICENSE for details.

Latest podspec

{
    "name": "LGViewControllers",
    "version": "1.0.0",
    "platforms": {
        "ios": "6.0"
    },
    "license": "MIT",
    "homepage": "https://github.com/Friend-LGA/LGViewControllers",
    "authors": {
        "Grigory Lutkov": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Friend-LGA/LGViewControllers.git",
        "tag": "1.0.0"
    },
    "summary": "Classes extends abilities of UITableViewController, UICollectionViewController, and more",
    "requires_arc": true,
    "source_files": "LGViewControllers/*.{h,m}",
    "dependencies": {
        "LGRefreshView": [
            "~> 1.0.0"
        ],
        "LGPlaceholderView": [
            "~> 1.0.0"
        ]
    },
    "subspecs": [
        {
            "name": "LGViewControllerAnimator",
            "source_files": "LGViewControllers/LGViewControllerAnimator/*.{h,m}"
        },
        {
            "name": "LGScrollViewController",
            "source_files": "LGViewControllers/LGScrollViewController/*.{h,m}"
        },
        {
            "name": "LGTableViewController",
            "source_files": "LGViewControllers/LGTableViewController/*.{h,m}"
        },
        {
            "name": "LGCollectionViewController",
            "source_files": "LGViewControllers/LGCollectionViewController/*.{h,m}"
        },
        {
            "name": "LGWebViewController",
            "source_files": "LGViewControllers/LGWebViewController/*.{h,m}"
        }
    ]
}

Pin It on Pinterest

Share This