Print

【Swif定制t】Intro

设计辅导Qq:1052602713


项目介绍:

Intro


Overview

一个带简单动画的引导页/ intro / tutorial.

Requirements

iOS8

Installation with CocoaPods

Intro is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'Intro'Usageimport Intro let vc = IntroViewController() vc.items = [ ('text', UIImage(named: '1')), ('text', UIImage(named: '2')), ('text', UIImage(named: '3')) ] vc.animationType = .rotate vc.titleColor = .black vc.titleFont = .systemFont(ofSize: 20) vc.imageContentMode = .scaleAspectFit vc.closeTitle = 'READY' vc.closeColor = .white vc.closeBackgroundColor = .black vc.closeBorderWidth = 0 vc.closeBorderColor = UIColor.black.cgColor vc.closeCornerRadius = 2 vc.didClose = { self.showButton.setTitle('Show again', for: .normal) } present(vc, animated: true, completion: nil) Available animation typespublic enum IntroAnimationType { case raise case rotate } Example Project

An example project is included with this repo. To run the example project, clone the repo, and run pod install from the Example directory first.

Author

Nurdaulet, b.nurdaulet.b@gmail.com

论文开题报告