哪款iPhone操控比较好?
我遇到一种情况,用户可以单击一个显示随机图像的控件,在其下方查看,双击以标记它,或者将其拖动到一个框,如果其主体的一半以上在其中,则它会捕捉到该框盒子。
我之前使用过 UIbuttons(带有背景图像),并为它们完成了单击/双击操作,如何根据框覆盖区域的横截面进行拖动并捕捉到框?
如果我使用 uiimage 怎么办? 我知道拖动 uiimage 对象是可能的,uiimage 也可以双击/单击吗?
I have a situation in which user can single tap a control, which show random images, to peek under it, double tap to mark it, or drag it to a box where it snaps to the box if more than half of its body is inside box.
I was using UIbuttons (with background image) before and have done the single/double tap thing for them, how to do the drag and snap to a box based on the cross-section of covered area by box?
What if i use uiimage? i know dragging a uiimage object is possible, is double/single tap is also possible for uiimage?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,UIImageView 是可能的 - 您可以在任何 UIView 后代(包括 UIImageView)上轻松实现各种触摸方法。
Yes, it's possible with UIImageView - you can implement the various touch methods just as easily on any UIView descendant, which includes UIImageView.