腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(5401)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
2
回答
延迟
touchesBegan
我有一个UIView子类,并添加了
touchesBegan
和touchesEnd方法.在
touchesBegan
中,我使用self.backgroundColor = [UIColor greenColor]将backgroundColor从白色设置为绿色.在touchesEnd中,我将颜色重置为白色
浏览 3
修改于2015-08-05
得票数 7
回答已采纳
2
回答
覆盖
touchesBegan
override func
touchesBegan
(touches: Set<NSObject>, withEvent event: UIEvent) { super.
touchesBegan
浏览 1
修改于2016-01-03
得票数 1
回答已采纳
8
回答
UIScrollView
touchesBegan
所以我想做的就是当用户触摸UIScrollView时播放声音。UIScrollViewDelegate具有scrollViewWillBeginDragging:方法,但它只在touchMoved上被调用。我希望它在touchBegan上被调用。
浏览 12
提问于2009-11-06
得票数 10
回答已采纳
2
回答
"
touchesBegan
“错误
我的代码:override func
touchesBegan
(touches: Set<UITouch>, withEvent event
浏览 1
修改于2015-09-23
得票数 0
回答已采纳
1
回答
touchesBegan
诉UITapGestureRecognizer
目前,我有一个处理所有点击的override func
touchesBegan
和一个处理长点击/搁置的UILongPressGestureRecognizer。 //duck Hero }
浏览 0
修改于2015-12-17
得票数 4
回答已采纳
1
回答
touchesBegan
不会触发
当用户点击视图时,我有以下代码来隐藏我的键盘,但
touchesBegan
根本没有触发: self.password.delegate = self override func
touchesBegan
浏览 2
修改于2018-11-27
得票数 0
2
回答
touchesBegan
和touchesMoved
我有一个响应touchesMoved: &
touchesBegan
:的UIImageView,它工作得很好。代码:{ NSSet *allTouches = [event
浏览 5
修改于2015-11-12
得票数 6
2
回答
pressGestureRecognizer和
touchesBegan
为了在屏幕上拖动UIView,我使用了
touchesBegan
、touchesMoved和touchesEnded方法。它可以工作,但是:我必须抬起手指才能拖动它,因为
touchesBegan
方法已经被调用,因此不会再次调用,因此我不能在屏幕上拖动UIView。在UILongPressGestureRecognizer被触发后,有没有办法手动调用
touchesBegan
(UILongPressGestureRecognizer更改BOOL值,只有当BOOL值设置为YES时,
touchesBegan
才起作用)。
浏览 0
修改于2013-02-06
得票数 3
回答已采纳
1
回答
touchesBegan
If语句问题
以下是所有相关代码: override func
touchesBegan
(_ touches: Set<UITouch>, with event: UIEvent?)
浏览 0
修改于2018-02-20
得票数 1
回答已采纳
2
回答
优化
touchesBegan
UITextField
接下来,我了解到要在单击屏幕上的任意位置时关闭虚拟键盘,我们必须实现
touchesBegan
方法以及与现有视图UITextFields绑定的变量名称。
浏览 2
提问于2014-02-25
得票数 0
1
回答
touchesBegan
取消UISwipeGestureRecognizer
我的视图控制器中有一个通用的
touchesBegan
。- (void)
touchesBegan
:(NSSet *)touches withEvent:(UIEvent *)event { NSLog(@"--[%s:%d]",__PRETTY_FUNCTION
浏览 1
提问于2015-04-23
得票数 1
1
回答
邮箱:
touchesBegan
@ multitask
在iPhoneOS 4.0中,当应用程序在后台运行时,是否可以访问
touchesBegan
事件? 提前谢谢。
浏览 2
提问于2010-05-09
得票数 0
2
回答
TouchesBegan
不点火
layout guide UIview UIImageViewoverride func
touchesBegan
浏览 2
提问于2016-02-14
得票数 2
回答已采纳
1
回答
不会触发
touchesBegan
我使用下面的代码来检测物体上的触摸 NSArray *allTouches
浏览 1
提问于2012-05-04
得票数 1
回答已采纳
1
回答
touchesBegan
: UITableView内幕
根据苹果的MoveMe示例,我使用
touchesBegan
: touchesMoved: events捕捉到了拖拽。 gradientview是单元格的子视图。
浏览 2
提问于2015-02-22
得票数 0
1
回答
touchesBegan
与physhicsBody
我正在创建一个2x2矩阵,并将节点放入其中。当我在矩阵的某个位置中选择一个节点时,他使用着色操作将其颜色更改为红色。例如:[1-0][y]我不能用节点的矩阵位置来获得触摸,因为图像与它重叠,所以它永远不会触及矩阵方格。let location = touch.locationInNode(self) let node =
浏览 4
修改于2015-09-14
得票数 0
回答已采纳
1
回答
双指
TouchesBegan
我想跟踪用户在屏幕上的触摸。用户可以用两个手指触摸,然后移除1或用一个手指,然后立即用另一个手指(屏幕上将有两个手指),然后移除一个手指。如何准确跟踪触摸1和触摸2
浏览 3
提问于2017-04-15
得票数 0
回答已采纳
1
回答
覆盖UIGestureRecognizer
touchesBegan
UIKit.UIGestureRecognizerSubclass super.
touchesBegan
(touches, withEvent: event); //nextResponder() ??
浏览 0
修改于2020-06-20
得票数 6
回答已采纳
1
回答
iOS
touchesBegan
问题
TouchesBegan
和TouchesMoved:{ UITouch如果我在
touchesBegan
和TouchesMoved中更改索引"posible = [ArrayImage..",对于0,它只对第一个UIImageView有效(我理解为什么),但它不会崩溃。
浏览 1
提问于2012-07-28
得票数 0
回答已采纳
3
回答
未调用
touchesBegan
setUserInteractionEnabled:YES]; NSLog(@"Member View");{ [self.view
touchesBegan
:touches
浏览 2
提问于2014-07-08
得票数 2
回答已采纳
第 2 页
第 3 页
第 4 页
第 5 页
第 6 页
第 7 页
第 8 页
第 9 页
第 10 页
第 11 页
点击加载更多
领券