文章来源:淘论文网   发布者: 毕业设计   浏览量: 27



还可以点击去查询以下关键词:
[TTSegmen]    [毕业]    [tedControl]    [TTSegmen毕业tedControl]   

项目介绍:

TTSegmentedControl

https://github.com/tapptitude/TTSegmentedControl

An elegant, animated and customizable segmented control for iOS.
iOS上优雅,内置动画和可自定义的分段控件。

Features 功能点:

可变数量的items

转场动画

完全可配置(颜色,论文,渐变,阴影,开题报告,角半径)

可以在Interface Builder中进行设计

Requirements

iOS 8.0+

Xcode 7.3+

Installation 安装方法

CocoaPods

Swift 3.0

pod 'TTSegmentedControl'

Swift 2.x

pod 'TTSegmentedControl', '0.1.1'

Manually

手动将 TTSegmentedControl.swift 这个文件拖入项目中.

Usage

Programatic:

let segmentedControl = TTSegmentedControl() segmentedControl.allowChangeThumbWidth = false segmentedControl.frame = CGRect(x: 50, y: 200, width: 100, height: 50) segmentedControl.didSelectItemWith = { (index, title) -> () in print('Selected item \(index)') } view.addSubview(segmentedControl)

Interface Builder:

Add a UIView and set it's class to TTSegmentedControl. You can customize the control directly from the interface builder.

How to customize?

Checkout the playground and see how to implement and customize the SegmentedControl.

pod try TTSegmentedControl

In order to customize the segmented control you'll have to edit it's properties.

segmentedControl.defaultTextColor = UIColor.blackColor() segmentedControl.selectedTextColor = UIColor.whiteColor() segmentedControl.thumbGradientColors = [UIColor.redColor(), UIColor.blueColor()] segmentedControl.useShadow = true


这里还有:


还可以点击去查询:
[TTSegmen]    [毕业]    [tedControl]    [TTSegmen毕业tedControl]   

请扫码加微信 微信号:sj52abcd


下载地址: http://www.taolw.com/down/8727.docx
  • 上一篇:fk-ios-毕业设计chatheads
  • 下一篇:一个最多支持五种色彩毕业设计的光环,色彩占比自定义控制