3D touch 兼容库 PeekPop

码农软件 · 软件分类 · 高级UI组件(Advanced) · 2019-07-11 19:28:34

软件介绍

Peek 和 Pop 是 iPhone 6S 和 6S+ 新推出的一项很棒的特性,可以让你轻松通过 3D touch 实现内容预览。但是还有大概 80% 的 iOS 用户使用的是老的设备。而 PeekPop 是一个 Swift 框架,可以让你的老系统支持 Peek 和 Pop 特性。

示例代码:

import PeekPop

class MyViewController: UIViewController, PeekPopPreviewingDelegate {

    var peekPop: PeekPop?

    override func viewDidLoad() {
        peekPop = PeekPop(viewController: self)
        peekPop?.registerForPreviewingWithDelegate(self, sourceView: collectionView)
    }

func previewingContext(previewingContext: PreviewingContext, viewControllerForLocation location: CGPoint) -> UIViewController?

本文地址:https://codercto.com/soft/d/9922.html

Learn Python 3 the Hard Way

Learn Python 3 the Hard Way

Zed A. Shaw / Addison / 2017-7-7 / USD 30.74

You Will Learn Python 3! Zed Shaw has perfected the world’s best system for learning Python 3. Follow it and you will succeed—just like the millions of beginners Zed has taught to date! You bring t......一起来看看 《Learn Python 3 the Hard Way》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

html转js在线工具
html转js在线工具

html转js在线工具