JudyPopBubble
示例
要运行示例项目,请首先克隆仓库,然后在示例目录中运行 pod install
。
要求
- iOS 9.0
- Xcode 10+
- Swift 5.0+
安装
JudyPopBubble 可通过 CocoaPods 获得。要安装它,只需将以下行添加到 Podfile 中。
pod 'JudyPopBubble'
用法
let judyPopBubble = JudyPopBubble()
// 创建计时器,并以默认模式在当前运行循环中调度它。
animateTimer = Timer.scheduledTimer(withTimeInterval: interval, repeats: true) { [weak self] timer in
if let strongSelf = self {
let image = UIImage(named: imageNames[NSInteger(arc4random_uniform( UInt32((imageNames.count)) ))])
judyPopBubble.judy_popBubble(withImage: image, inView: strongSelf.view, belowSubview: strongSelf.likeButton)
}
}
作者
醉翁之意, [email protected]
许可证
JudyPopBubble可以在MIT许可证下使用。更多信息请参阅LICENSE文件。