Skip to content

bianxiang/BXRotationView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

BXRotationView

作者:卞翔

联系qq:1023537528

QQ交流群:160603792

BXRotationView: 一个简单易用的开奖翻转实现

image

###该组件使用方法如下:

class ViewController: UIViewController,BXRotationViewDelegate {

    @IBOutlet weak var bx: BXRotationView!


    override func viewDidLoad() {
    super.viewDidLoad()


    /**
    *  代码使用方法
    */

    let rotationView = BXRotationView(frame: CGRectMake(100, 100, 200, 200))
    rotationView.delegate = self

    rotationView.first.image = UIImage(named: "1.jpg")
    rotationView.second.image = UIImage(named: "2.jpg")
    
    self.view.addSubview(rotationView)


    /**
    *  xib使用方法若要使用请打开
    */

    //        bx.first.image = UIImage(named: "1.jpg")
    //        bx.second.image = UIImage(named: "2.jpg")
    //        bx.delegate = self

    }


    func bxRotationViewDidSelected(result: String) {
    print(result)
    }

}

About

BXRotationView开奖翻转实现

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages