iShowcase 2.3.0

iShowcase 2.3.0

测试测试
语言语言 SwiftSwift
许可证 MIT
发布最后发布2017年9月
SwiftSwift 版本4.0
SPM支持 SPM

Rahul Iyer 维护。




iShowcase 2.3.0

iShowcase

使用 iShowcase 突出您应用程序的各个部分

1

需求

  • iOS 7.0 或更高版本
  • 自动引用计数(ARC)

安装

Swift

  • iShowcase.swift 文件添加到您的项目中

文档

使用方法

要运行示例项目,请克隆仓库,并首先在 Example 目录中运行 pod install

创建实例

// Create Object of iShowcase
let showcase = iShowcase()

代理

showcase.delegate = self;

代理方法

iShowcaseShown // Called When Showcase is displayed
iShowcaseDismissed // Called When Showcase is removed

显示 iShowcase

showcase.setupShowcaseForView(view: UIView)
showcase.titleLabel.text = "Default"
showcase.detailsLabel.text = "This is default iShowcase!"
showcase.show()

// For custom location

setupShowcaseForLocation(location: CGRect)

// Methods for other UI Elements

setupShowcaseForTableView(tableView: UITableView)
setupShowcaseForTableView(tableView: UITableView, withIndexPath: NSIndexPath)
setupShowcaseForTableView(tableView: UITableView, withIndexOfItem: Int, andSectionOfItem: Int)
setupShowcaseForBarButtonItem(barButtonItem: UIBarButtonItem)

自定义

public enum TYPE: Int {
    case CIRCLE = 0
    case RECTANGLE = 1
}

titleLabel: UILabel
detailsLabel: UILabel
coverColor: UIColor
coverAlpha: CGFloat
highlightColor: UIColor
type: TYPE
radius: Float
singleShotId: Int64
hideOnTouchOutside: Bool

截图

2 3 4 5

致谢

灵感来源于 ShowcaseView,由 Alex Curran 创建

作者

rahuliyer95,[email protected]

许可证

iShowcase 在 MIT 许可证下可用。有关更多信息,请参阅 LICENSE 文件。