Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我到处研究,但找不到答案。您将如何转换 NSData 中的 UIGestures 并在需要时将其转换回 UIGestures?
是否可以通过蓝牙将 UIGestures 发送到另一台设备?
谢谢。
gesterrecognizers 是一个对象,它保存指向您的对象和系统对象的其他对象的指针,因此序列化识别器不会带回它需要返回的系统对象。如果它不依赖于系统框架,那将是一个直接的创作。因此,您唯一能做的就是保存重新创建新识别器所需的数据。
在任何情况下,您正在尝试或想要实施的事情都是不可能的。您不能存储或转换UIGestureRecognizer. 不可能。
UIGestureRecognizer