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

View covers everything inside view controller, and shows some alert text, progress bar or other view, when you need to hide content.
For example when you push view controller and want to load some data from server, you can prepare everything while LGPlaceholderView will show activity indicator for user.

Preview







Installation

With source code

Download repository, then add LGPlaceholderView directory to your project.

With CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries in your projects. To install with cocoaPods, follow the "Get Started" section on CocoaPods.

Podfile

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

With Carthage

Carthage is a lightweight dependency manager for Swift and Objective-C. It leverages CocoaTouch modules and is less invasive than CocoaPods. To install with carthage, follow the instruction on Carthage.

Cartfile

github "Friend-LGA/LGPlaceholderView" ~> 1.0.0

Usage

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

#import "LGPlaceholderView.h"

Initialization

You have several methods for initialization:

- (instancetype)initWithView:(UIView *)view; // parent view, that content you need to hide

More init methods you can find in LGPlaceholderView.h

Notifications

Here is also some notifications, that you can add to NSNotificationsCenter:

kLGPlaceholderViewWillShowNotification;
kLGPlaceholderViewWillDismissNotification;
kLGPlaceholderViewDidShowNotification;
kLGPlaceholderViewDidDismissNotification;

More

For more details try Xcode Demo project and see LGPlaceholderView.h

License

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

Latest podspec

{
    "name": "LGPlaceholderView",
    "version": "1.0.2",
    "platforms": {
        "ios": "6.0"
    },
    "license": "MIT",
    "homepage": "https://github.com/Friend-LGA/LGPlaceholderView",
    "authors": {
        "Grigory Lutkov": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Friend-LGA/LGPlaceholderView.git",
        "tag": "1.0.2"
    },
    "summary": "View covers everything inside view controller, and shows some alert text, progress bar or other view, when you need to hide content",
    "description": "View covers everything inside view controller, and shows some alert text, progress bar or other view, when you need to hide content. For example when you push view controller and want to load some data from server, you can prepare everything while LGPlaceholderView will show activity indicator for user.",
    "requires_arc": true,
    "source_files": "LGPlaceholderView/*.{h,m}"
}

Pin It on Pinterest

Share This