Latest 0.2.4
Homepage https://github.com/ripperhe/ZYSuspensionView
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

Version
License
Platform

博客介绍

Example

If you want to run demo, download the project can be run directly.


Requirements

  • iOS 8.0 or later

Installation

ZYSuspensionView is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "ZYSuspensionView"

Only install SuspensionView

pod "ZYSuspensionView/SuspensionView"

Install SuspensionView + TestManager

pod "ZYSuspensionView/TestManager"

Install SuspensionView + LoginManager

pod "ZYSuspensionView/LoginManager"

Usage

SuspensionView

Create and show a suspensionView

ZYSuspensionView *susView = [[ZYSuspensionView alloc] initWithFrame:CGRectMake(- 50.0 / 6, 200, 50, 50)
                                                           color:color
                                                        delegate:self];
[susView show];

TestManager

Add a test item. You can add test items anywhere.

[ZYTestManager addTestItemWithTitle:@"new item" autoClose:YES action:^{
    // click new item : do something ~~~~~~~~~~
}];

LoginManager

LoginManager help you save and get account password.

When you log in successfully, please send ZYLoginSuccess Notification with account info. The susView will be removed, and the account info will be saved.

[[NSNotificationCenter defaultCenter] postNotificationName:@"kZYLoginSuccessNotificationKey"
                                                    object:@{account:password}];

When you log out successfully, please send ZYLogoutSuccess Notification. The susView will be show again.

[[NSNotificationCenter defaultCenter] postNotificationName:@"kZYLogoutSuccessNotificationKey"
                                                    object:nil];

Author

ripper, [email protected]

License

ZYSuspensionView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "ZYSuspensionView",
    "version": "0.2.4",
    "summary": "u60acu6d6eu7403",
    "description": ""u60acu6d6eu7403u7ec4u4ef6uff0cu5916u52a0u6d4bu8bd5u529fu80fd"",
    "homepage": "https://github.com/ripperhe/ZYSuspensionView",
    "license": "MIT",
    "authors": {
        "ripper": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/ripperhe/ZYSuspensionView.git",
        "tag": "0.2.4"
    },
    "frameworks": "UIKit",
    "subspecs": [
        {
            "name": "SuspensionView",
            "source_files": "ZYSuspensionView/ZYSuspensionView/**/*"
        },
        {
            "name": "TestManager",
            "source_files": "ZYSuspensionView/ZYTestManager/**/*",
            "dependencies": {
                "ZYSuspensionView/SuspensionView": []
            }
        },
        {
            "name": "LoginManager",
            "source_files": "ZYSuspensionView/ZYLoginManager/**/*",
            "dependencies": {
                "ZYSuspensionView/SuspensionView": []
            }
        }
    ]
}

Pin It on Pinterest

Share This