项目介绍:
KSGuideController
A beautiful animated novice guide controller written in Swift.
UsageSwiftimport 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')
}InstallationCocoapods
Update cocoapods to the latest version.
Add pod 'KSGuideController' to your Podfile.
Run pod install or pod update.
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
,
论文,
开题报告