Latest 1.0.7
Homepage https://github.com/uMina/XYXSkimViewDemo
License MIT
Platforms ios 9.0
Authors

走马灯视图:子页面可复用,省内存。调用方法超简单。子页面都是跟屏幕同宽,高度可以自定义。
效果图

支持CocoaPods

获取方法:
pod ‘XYXSkimView’, ‘~> 0.9.6’

初始化:支持xib 和 纯代码两种方式

‘’‘
let skimView = XYXSkimView()
@IBOutlet weak var xibSkimView: XYXSkimView!
’‘’

初始设置

‘’‘
skimView.frame = CGRect(x: 0, y: 100, width: UIScreen.main.bounds.width, height: 80)
skimView.dataSource = self
view.addSubview(skimView)
skimView.register(DemoView.self, forCellReuseIdentifier: "DemoView") //注册子页面

xibSkimView.register(DemoView.self, forCellReuseIdentifier: "DemoView") //注册子页面
xibSkimView.dataSource = self
’‘’

实现委托

”’
func numberOfRows(in skimView: XYXSkimView) -> Int
func skimView(_ skimView: XYXSkimView, cellForRowAt index: Int) -> XYXSkimViewCell
”’

可下载Demo查看委托实现代码

Latest podspec

{
    "name": "XYXSkimView",
    "version": "1.0.7",
    "summary": "u6a2au5411u7684u3001u53efu590du7528u7684u6edau52a8u89c6u56fe",
    "swift_version": "4.0",
    "description": "u6a2au5411u7684u3001u53efu590du7528u7684u6edau52a8u89c6u56feu3002u53efu4ee5u4ecexibu6587u4ef6u6216u8005u7eafu4ee3u7801u6784u5efacellu3002",
    "homepage": "https://github.com/uMina/XYXSkimViewDemo",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Teresa": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/uMina/XYXSkimViewDemo.git",
        "tag": "1.0.7"
    },
    "source_files": [
        "XYXSkimView",
        "XYXSkimView/*.swift"
    ]
}

Pin It on Pinterest

Share This