Latest 1.0.3
Homepage https://github.com/2NU71AN9/SLEmptyPage
License MIT
Platforms ios 9.0, requires ARC
Authors

利用RunTime设置UITableView和UICollectionView没有展示信息时显示自定义的空状态页面

pod 'SLEmptyPage'

AppDelegate中添加以下代码

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {

        SLEmptyPageManager.enable = true
        return true
    }

Latest podspec

{
    "name": "SLEmptyPage",
    "version": "1.0.3",
    "swift_version": "4.2",
    "summary": "u7a7au72b6u6001u9875",
    "description": "u8bbeu7f6eUITableViewu548cUICollectionViewu6ca1u6709u5c55u793au4fe1u606fu65f6u663eu793au81eau5b9au4e49u7684u7a7au72b6u6001u9875u9762",
    "homepage": "https://github.com/2NU71AN9/SLEmptyPage",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "u5b59u6881": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/2NU71AN9/SLEmptyPage.git",
        "tag": "v1.0.3"
    },
    "source_files": "SLEmptyPage/EmptyPage/*.swift",
    "resources": "SLEmptyPage/EmptyPage/*.bundle",
    "requires_arc": true
}

Pin It on Pinterest

Share This