Latest 0.4.0
Homepage https://github.com/PFei-He/PFTabView
License MIT
Platforms ios 7.0, requires ARC
Frameworks Foundation, CoreGraphics, UIKit
Authors

PFTabView

License MIT
Support
Cocoapods Compatible

可滑动的标签

版本

0.4.0

说明

关于项目

PFTabView是一款简单接入便可实现新闻客户端顶部滑动标签的开源库。

关于CocoaPods

target 'YourTarget' do
    platform:ios, '7.0'
    pod 'PFTabView', '~> 0.4'
end

示例代码

@weakify_self
[self.tabView numberOfItemUsingBlock:^NSInteger{
    return 4;
}];
[self.tabView sizeOfItemUsingBlock:^CGSize{
    @strongify_self
    return CGSizeMake(self.view.bounds.size.width/4, 40);
}];
[self.tabView viewForItemUsingBlock:^UIView *(NSInteger index) {
    @strongify_self
    return self.views[index];
}];

运行效果展示

image

许可证

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

Latest podspec

{
    "name": "PFTabView",
    "version": "0.4.0",
    "summary": "PFTabViewu662fu4e00u6b3eu7b80u5355u63a5u5165u4fbfu53efu5b9eu73b0u65b0u95fbu5ba2u6237u7aefu9876u90e8u6ed1u52a8u6807u7b7eu7684u5f00u6e90u5e93u3002",
    "homepage": "https://github.com/PFei-He/PFTabView",
    "license": "MIT",
    "authors": {
        "PFei-He": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/PFei-He/PFTabView.git",
        "tag": "0.4.0"
    },
    "source_files": "PFTabView/*",
    "frameworks": [
        "Foundation",
        "CoreGraphics",
        "UIKit"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This