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



还可以点击去查询以下关键词:
[Swift]    [写的]    [定制]    [控件]    [Swift写的评定制分控件]   

项目介绍:

SwiftyStarRatingView
https://github.com/Jerrrr/SwiftyStarRatingView

A simple star rating view written in pure swift, lightweight but powerful.

SwiftyStarRatingView 是一个用 swift 3.0 编写的评分控件,开题报告,可以支持自定义图片和颜色,并且可以支持在XIB、StoreBoard中使用,并支持AutoLayout。

中文介绍Screenshots



Requirements

iOS 8.0+

Xcode 8

Swift 3.0

CocoaPods

CocoaPods is the recommended way to add SwiftyStarRatingView to your project.

Add a pod entry for SwiftyStarRatingView to your Podfile.

pod 'SwiftyStarRatingView'

Second, install SwiftyStarRatingView into your project:

pod installManually

Download the latest code version .

Open your project in Xcode,drag the SwiftyStarRatingView folder into your project. Make sure to select Copy items when asked if you extracted the code archive outside of your project.

UsageCreate a simple rating view: let starRatingView = SwiftyStarRatingView() starRatingView.frame = CGRect(x: x, y: y, width: width, height: height) starRatingView.maximumValue = 5 //default is 5 starRatingView.minimumValue = 0 //default is 0 starRatingView.value = 3 //default is 0 starRatingView.tintColor = UIColor.yellow starRatingView.addTarget(self, action: #selector(function), for: .valueChanged) self.view.addSubview(starRatingView)Setting this property to control whether to display a half stars: starRatingView.allowsHalfStars = true //default is true starRatingView.value = 3.5 //default is 0Whether accurate display: starRatingView.accurateHalfStars = true //default is trueAlways callback or just stop touch: starRatingView.continuous = true //default is trueUse custom image: starRatingView.halfStarImage = UIImage(named: 'half.png') starRatingView.emptyStarImage = UIImage(named: 'empty.png') starRatingView.filledStarImage = UIImage(named: 'filled.png')StoryBoard or XIB:

SwiftyStarRatingView also works great with Auto Layout, you can use it in StoryBoard or XIB.

ContactsIf you wish to contact me, email at: chen.developer@foxmail.comSina : @后知后觉乀

论文


这里还有:


还可以点击去查询:
[Swift]    [写的]    [定制]    [控件]    [Swift写的评定制分控件]   

请扫码加微信 微信号:sj52abcd


下载地址: http://www.taolw.com/down/8100.docx
  • 上一篇:FirstPag毕业设计eAnimation
  • 下一篇:Swift3.0 三个UIButton 实现无限轮播