Latest 1.5.8
Homepage https://github.com/jgyhc/MJPlaceholderView
License MIT
Platforms ios 8.0
Dependencies AFNetworking, Masonry, YYImage, CTMediator, Aspects
Authors

CI Status
Version
License
Platform

使用前,先确定愿不愿意加入依赖,不愿意的话,自行修改代码就好了!

为了布局方便依赖了:Masonry

为了方便配置全局视图样式,依赖了:CTMediator

为了监测网络请求状态引入了:AFNetworking

为了加载动图引入了:YYImage

实现思路:交换了tableViewcollectionViewreloadData方法,另外还加入了没有网络情况的占位图和页面加载中的占位图!

最简单的时候,self.collectionView.placeholderView = [MJPlaceholderView placeholder];就可以使用了。

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

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

pod 'MJPlaceholderView'

Author

jgyhc, [email protected]

License

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

Latest podspec

{
    "name": "MJPlaceholderView",
    "version": "1.5.8",
    "summary": "u4e00u4e2au7528u4e8etableViewu548ccollectionViewu7a7au9875u9762u5360u4f4du63a7u4ef6",
    "description": "u4e00u4e2au7528u4e8etableViewu548ccollectionViewu7a7au9875u9762u5360u4f4du63a7u4ef6uff0cu903bu8f91u975eu5e38u7b80u5355uff01u4f46u662fu5e94u8be5u8fd8u6709u95eeu9898uff01u540eu9762u6162u6162u4f18u5316u5427~",
    "homepage": "https://github.com/jgyhc/MJPlaceholderView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "jgyhc": "[email protected]"
    },
    "source": {
        "git": "https://github.com/jgyhc/MJPlaceholderView.git",
        "tag": "1.5.8"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "MJPlaceholderView/Classes/**/*",
    "dependencies": {
        "AFNetworking": [],
        "Masonry": [],
        "YYImage": [],
        "CTMediator": [],
        "Aspects": []
    }
}

Pin It on Pinterest

Share This