欢迎光临
我们一直在努力

KSGuideController-一个漂亮的新手引导视图

建站超值云服务器,限时71元/月

KSGuideController-一个漂亮的新手引导视图

项目介绍:

KSGuideController

License MIT 
CocoaPods 
CocoaPods 
Support 

A beautiful animated novice guide controller written in Swift.

Demo~

Usage

Swift

import KSGuideController

var items = [KSGuideItem]()
for button in buttons {
    let n = Int(arc4random()) % string.characters.count
    let index = string.index(string.startIndex, offsetBy: Int(n))
    let text = string.substring(to: index)
    let item = KSGuideItem(sourceView: button, text: text)
    items.append(item)
}
let vc = KSGuideController(items: items, key: "MainGuide")
vc.setIndexChangeBlock { (index, item) in
    print("Index has change to \(index)")
}
vc.show(from: self) { 
    print("Guide controller has been dismissed")
}

Installation

Cocoapods

  1. Update cocoapods to the latest version.

  2. Add pod 'KSGuideController' to your Podfile.

  3. Run pod install or pod update.

  4. Import KSGuideController module.

Requirements

This library requires iOS 8.0+ and Xcode 8.0+.

License

KSGuideController is provided under the MIT license. See LICENSE file for details.

项目地址

https://github.com/skx926/KSGuideController

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » KSGuideController-一个漂亮的新手引导视图
分享到: 更多 (0)