Skip to content

PFei-He/PFTabView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 文件。