Latest1.0.3
Homepagehttps://github.com/once00/OnceLoadingView
LicenseMIT
Platformsios 6.0, requires ARC
FrameworksUIKit, CoreFoundation, QuartzCore, CoreGraphics, CoreImage, CoreText, ImageIO, Accelerate
Authors

安装

CocoaPods

在 Podfile 中添加 pod ‘OnceLoadingView’。
执行 pod install 或 pod update。
导入

手动安装

1.下载 OnceLoadingView 文件夹内的所有内容。

2.将 OnceLoadingView 内的OnceLoadingView.h/.m源文件添加(拖放)到你的工程。

使用

模拟加载

[OnceLoadingView showNoNetwork:self.view];

拟加载失败,重新加载回调

[OnceLoadingView showLoadingFailed:self.view event:^(UIButton *sender) {
    [OnceLoadingView showLoading:self.view];
}];
//数据加载完成后消失
[self performSelector:@selector(dis) withObject:self afterDelay:4];
-(void)dis{
    需要执行的操作
}

模拟数据没找得到

[OnceLoadingView showNullWithinView:self.view];

模拟无网络

[OnceLoadingView showNoNetwork:self.view];

系统要求

该项目最低支持 iOS 8.0 和 Xcode 8.0。

许可证

OnceKit 使用 MIT 许可证,详情见 LICENSE 文件。

Latest podspec

{
    "name": "OnceLoadingView",
    "summary": "u8fd9u662fu4e00u4e2au52a0u8f7du7b49u5f85u9875u9762",
    "version": "1.0.3",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "once00": "[email protected]"
    },
    "social_media_url": "http://onceo.me/",
    "homepage": "https://github.com/once00/OnceLoadingView",
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/once00/OnceLoadingView.git",
        "tag": "1.0.3"
    },
    "requires_arc": true,
    "source_files": "OnceLoadingView/**/*.{h,m}",
    "public_header_files": "OnceLoadingView/**/*.{h}",
    "resources": "OnceLoadingView/Assets/**/*.xcassets",
    "libraries": "z",
    "frameworks": [
        "UIKit",
        "CoreFoundation",
        "QuartzCore",
        "CoreGraphics",
        "CoreImage",
        "CoreText",
        "ImageIO",
        "Accelerate"
    ]
}

Pin It on Pinterest

Share This