All Projects → netyouli → Whc_pageviewkit

netyouli / Whc_pageviewkit

Licence: mit
iOS平台轻量级的PageView组件,其中TitleBar拥有30多种UI样式

Programming Languages

swift
15916 projects

Labels

Projects that are alternatives of or similar to Whc pageviewkit

Fwpopupview
弹窗控件:支持AlertView、Sheet、自定义视图的PopupView。AlertView中可以嵌套自定义视图,各组件的显示隐藏可配置;Sheet仿微信样式;同时提供自定义弹出。更多配置请参考”可设置参数“,提供OC使用Demo。
Stars: ✭ 361 (+511.86%)
Mutual labels:  pod
Gqanimation
几种常见的动画,如晴天,雨天,多云,雷阵雨,二维码扫描,脉冲等
Stars: ✭ 19 (-67.8%)
Mutual labels:  pod
Amgcalendarmanager
EventKit helper for Swift 3
Stars: ✭ 29 (-50.85%)
Mutual labels:  pod
Xhpaykit
🔥不用官方SDK实现微信支付、支付宝支付
Stars: ✭ 544 (+822.03%)
Mutual labels:  pod
Certified Kubernetes Security Specialist
Curated resources help you prepare for the CNCF/Linux Foundation CKS 2021 "Kubernetes Certified Security Specialist" Certification exam. Please provide feedback or requests by raising issues, or making a pull request. All feedback for improvements are welcome. thank you.
Stars: ✭ 691 (+1071.19%)
Mutual labels:  pod
Fcfilemanager
iOS File Manager on top of NSFileManager for simplifying files management. 📂
Stars: ✭ 862 (+1361.02%)
Mutual labels:  pod
Kubectl Plugins
A Collection of Plugins for kubectl Integration (exec as any user, context switching, etc).
Stars: ✭ 340 (+476.27%)
Mutual labels:  pod
Mialertcontroller
A simple fully customizable alert controller
Stars: ✭ 53 (-10.17%)
Mutual labels:  pod
Numericaltextentry
An iOS library for beautiful number entry fields. iPad friendly. Written in Swift.
Stars: ✭ 16 (-72.88%)
Mutual labels:  pod
Highlighter
🖍 Highlight whatever you want!
Stars: ✭ 909 (+1440.68%)
Mutual labels:  pod
Badgehub
A way to quickly add a notification badge icon to any view. Make any view of a full-fledged animated notification center.
Stars: ✭ 592 (+903.39%)
Mutual labels:  pod
Kydrawercontroller
Side Drawer Navigation Controller similar to Android
Stars: ✭ 632 (+971.19%)
Mutual labels:  pod
Ios Imagezoomviewer
ImageZoomViewer is a simple to use Objective C framework that allows the capability of viewing images with zoom-in zoom-out functionality.
Stars: ✭ 14 (-76.27%)
Mutual labels:  pod
Pysearch
🔍 An elegant search controller which replaces the UISearchController for iOS (iPhone & iPad) .
Stars: ✭ 3,816 (+6367.8%)
Mutual labels:  pod
Hhcustomcorner
Awesome library to customize corners of UIView and UIButton. Now you can customize each corner differently
Stars: ✭ 36 (-38.98%)
Mutual labels:  pod
Xhlaunchad
🔥The screen opening advertising solutions - 开屏广告、启动广告解决方案-支持静态/动态图片广告,mp4视频广告,全屏/半屏广告、兼容iPhone/iPad. 【 Github下载不了/下载慢 可以访问国内下载地址: https://gitee.com/CoderZhuXH/XHLaunchAd】
Stars: ✭ 3,578 (+5964.41%)
Mutual labels:  pod
Openebs
Leading Open Source Container Attached Storage, built using Cloud Native Architecture, simplifies running Stateful Applications on Kubernetes.
Stars: ✭ 7,277 (+12233.9%)
Mutual labels:  pod
Fwcyclescrollview
轮播控件:支持本地图片、网络图片、自定义视图,轮播分页控件有多重可选方案,轮播次数、间隔时间也可设置,更多配置请参考”可设置参数“。提供OC使用Demo。
Stars: ✭ 59 (+0%)
Mutual labels:  pod
Kubernetes
K8S Kubeadm和二进制部署高可用集群
Stars: ✭ 49 (-16.95%)
Mutual labels:  pod
Openshift Psap
Example roles and yaml files for performance-sensitive applications running on OpenShift
Stars: ✭ 20 (-66.1%)
Mutual labels:  pod

WHC_PageViewKit

Build Status Pod Version Pod Platform Pod License

简介

  • 高效: 预加载机制
  • 方便: 只需要设置简单参数即可构建炫酷的TitleBar和PageView
  • 动画: 支持翻页TitleBar炫酷动画效果
  • 优势: TitleBar模块和PageView模块可以单独使用
  • 强大: TitleBar支持多种UI样式
  • 咨询: 712641411
  • 作者: 吴海超

NOTE

升级修改模块public权限

集成

  • 使用CocoaPods:
  • pod 'WHC_PageViewKit', '~> 1.0.5'
  • 手工集成:
  • 导入文件夹WHC_PageViewKit

使用第三方库

使用演示

要求

  • iOS 8.0 or later
  • Xcode 8.0 or later

用法

  • 创建PageView
override func viewDidLoad() {
    super.viewDidLoad()
    let pageView = WHC_PageView()
    pageView.delegate = self
    self.view.addSubview(pageView)
    pageView.whc_Left(0)
    .whc_Top(0)
    .whc_Right(0)
    .whc_Bottom(0)

    let layoutParam = WHC_PageViewLayoutParam()
    layoutParam.titles = ["新闻","外汇","黄金","原油","白银","股票","现货"]
    layoutParam.itemWidth = 80 /***如果标题很多一屏放不下需要设定每个标题的固定宽度否则可以忽略***/
    layoutParam.selectedTextColor = UIColor.orange
    layoutParam.normalBackgorundColor = UIColor.white
    layoutParam.normalTextColor = UIColor.black
    layoutParam.selectedBackgorundColor = UIColor.gary

    pageView.layoutIfNeeded()
    pageView.layoutParam = layoutParam
}

//MARK: - WHC_PageViewDelegate -
func whcPageViewStartLoadingViews() -> [UIView]! {
    return views
}

func whcPageView(pageView: WHC_PageView, willUpdateView view: UIView, index: Int) {
    print("更新当前视图")
}

  • 单独创建TitleBar

override func viewDidLoad() {
    super.viewDidLoad()
    let bottomBar = WHC_TitlesBar()
    self.view.addSubview(bottomBar)
    bottomBar.whc_Left(0)
            .whc_Right(0)
            .whc_BaseLine(0)
            .whc_Height(50)

    /// 设置底部bar的样式
    let layoutParam = WHC_TitlesBarLayoutParam()
    layoutParam.titles = ["样式","样式二","Android","iOS"]
    layoutParam.images = images
    layoutParam.selectedImages = selectedImages
    layoutParam.bottomLineHeight = WHC_TitlesBarLayoutParam.kNotCreateLine
    layoutParam.hasBottomCursor = false
    layoutParam.topLineHeight = 0.5
    layoutParam.normalFont = UIFont.systemFont(ofSize: 10)
    layoutParam.selectedFont = UIFont.systemFont(ofSize: 10)
    layoutParam.selectedTextColor = UIColor.gray
    layoutParam.itemTextImageMargin = 3
    layoutParam.defaultSelectIndex = 0
    layoutParam.itemImageSize = CGSize(width: 25, height: 25)
    layoutParam.itemLayoutStyle = .Image_Top_Text_Bottom
    bottomBar.layoutIfNeeded()
    bottomBar.layoutParam = layoutParam

    /// 设置点击回调
    bottomBar.clickButtonCallback = {(index: Int) in

    }
}

期待

  • 如果您在使用过程中有任何问题,欢迎issue me! 很乐意为您解答任何相关问题!
  • 与其给我点star,不如向我狠狠地抛来一个BUG!
  • 如果您想要更多的接口来自定义或者建议/意见,欢迎issue me!我会根据大家的需求提供更多的接口!

Licenses

All source code is licensed under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].