cyc

CycleView

The view of an infinite loop.一个无线循环的图片轮播器

Showing:

Popularity

Downloads/wk

0

GitHub Stars

55

Maintenance

Last Commit

4yrs ago

Contributors

3

Package

Dependencies

0

License

MIT

Categories

Readme

CycleView

  • The easiest way to use infinite-loop-view
  • 用法最简单的无限循环的图片轮播器

Requirements

  • iOS 7.0+
  • Xcode 6.3.1

Installation

CocoaPods

CocoaPods 0.36 adds supports for Swift and embedded frameworks. You can install it with the following command:

$ gem install cocoapods

To integrate CycleView into your Xcode project using CocoaPods, specify it in your Podfile:

platform :ios, '8.0'
use_frameworks!

pod 'CycleView'

Then, run the following command:

$ pod install

You should open the {Project}.xcworkspace instead of the {Project}.xcodeproj after you installed anything from CocoaPods.

For more information about how to use CocoaPods, I suggest this tutorial.

如何使用CycleView

  • cocoapods导入:pod 'CycleView'
  • 手动导入:
    • CycleView/CycleView/Source文件夹中的所有文件拽入项目中
    • 导入主头文件:#import "CycleView.h"

Usage

Swift

Regular

import CycleView

class className : PictureCycleController{
    
    //override loadView function
    //重写loadViewe方法
    override func loadView() {
        super.loadView()
    }
    
    var arrayM: [UIImage]?
    
    override func viewDidLoad() {
        super.viewDidLoad()
        //input an Array with UIImage
        //传入一个UIImage的图像数组
        CycleImageList = arrayM;
    }
    
}

Special

import CycleView

class AnimatorViewController: CycleAnimatorViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        var arrayM = [UIImage]()
        for var i = 0; i < 16; ++i {
            let imageName = String(format: "%02d.jpg", i + 1)
            arrayM.append(UIImage(named: imageName)!)
        }
        AnimatorImageList = arrayM;
        
        //you can modify the animation effect by enumeration type
        //可以通过枚举类型,修改动画效果
        AnimationType = SRTransitionAnimateType.CUBE.rawValue
        //you can change image's contentMode
        //可以设置图片填充模式
        AnimatorImageView!.contentMode = UIViewContentMode.ScaleAspectFit
    }
}

Screenshot

  • image
  • image
  • image
  • image
  • image
  • image
  • image
  • image
  • image
  • image

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100