腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(8162)
视频
沙龙
2
回答
不能在Xamarin.iOS:TouchEvent中调用UIScrollView
xamarin.ios
我需要将TouchEvent添加到UIScrollView中,但是当我触摸UIScrollView时,似乎永远不会调用
TouchesBegan
方法。
浏览 1
提问于2018-10-11
得票数 0
回答已采纳
2
回答
方法不覆盖Set<NSObject>超类中的任何方法。
swift
、
xcode
、
swift3
这句话是: self.view.endEditing
浏览 3
提问于2017-08-02
得票数 1
回答已采纳
2
回答
在UIButton上点击时未调用
touchesBegan
: withEvent:
ios
、
objective-c
、
uikit
、
uitouch
现在的问题是如何通过点击按钮来触发
touchesBegan
、touchesMoved和touchesEnded方法,这样我就可以获得起点和终点。
浏览 1
提问于2013-07-31
得票数 6
1
回答
在UIView类iOS目标c中不调用触摸事件
ios
、
uiview
、
touchesbegan
、
touchesmoved
、
touch-event
View.userInteractionEnabled = YES;现在,我正在尝试使用下面的代码片段从我的UIView类中获取触摸事件 { loc
浏览 3
提问于2017-04-28
得票数 1
回答已采纳
2
回答
延迟
touchesBegan
ios
、
objective-c
、
gesture
、
uitapgesturerecognizer
我有一个UIView子类,并添加了
touchesBegan
和touchesEnd方法.在
touchesBegan
中,我使用self.backgroundColor = [UIColor greenColor]将backgroundColor从白色设置为绿色.在touchesEnd中,我将颜色重置为白色
浏览 3
提问于2015-08-05
得票数 7
回答已采纳
2
回答
覆盖
touchesBegan
ios
、
xcode
、
swift
、
uibutton
override func
touchesBegan
(touches: Set<NSObject>, withEvent event: UIEvent) { super.
touchesBegan
浏览 1
提问于2015-05-27
得票数 1
回答已采纳
2
回答
如何在Swift中向nextResponder发送触摸事件
ios
、
swift
、
touch-event
、
uiresponder
我的问题- (void)
touchesBegan
:(NSSet *)touches withEvent:(UIEvent *)event {[super
touchesBegan
:touches withEvent:event];}class MyButton: UIButton { overri
浏览 2
提问于2015-10-05
得票数 3
回答已采纳
1
回答
使用UITextView作为子视图创建一个获取触摸事件的UIScrollView
iphone
、
objective-c
我有一个包含UITextView (不可编辑)的UIScrollView。我不能让UIScrollView获取触摸事件,但UITextView似乎获取并保留了它们。你知道怎么让UIScrollView获取触摸事件吗?
浏览 0
提问于2009-03-25
得票数 5
回答已采纳
8
回答
UIScrollView
touchesBegan
iphone
、
uiscrollview
所以我想做的就是当用户触摸UIScrollView时播放声音。UIScrollViewDelegate具有scrollViewWillBeginDragging:方法,但它只在touchMoved上被调用。我希望它在touchBegan上被调用。
浏览 12
提问于2009-11-06
得票数 10
回答已采纳
3
回答
在子视图上获取
touchesBegan
(UIWebView)
iphone
、
objective-c
、
ios
、
uiwebview
我有一个UIWebView,它被添加为UIview中的子视图,我想检测这个UIWebView何时被触摸,但
touchesBegan
就是不起作用。 有什么想法吗?
浏览 1
提问于2012-03-02
得票数 3
回答已采纳
8
回答
用选择器'
touchesBegan
:withEvent:‘具有不兼容类型'(NSSet,UIEvent) -> ()重写方法
ios
、
swift
、
overriding
Xcode 6.3.在实现UITextFieldDelegate协议的类中,我希望重写
touchesBegan
()方法,以可能隐藏键盘。如果我避免函数规范中的编译器错误,那么在从Set或NSSet读取"touch“时会出现编译器错误,否则super.
touchesBegan
(touch,withEvent:event:super.
touchesBegan
override func
touchesBegan
(touches: NSSet, withEvent event: UIEvent) { /
浏览 18
提问于2015-02-27
得票数 78
回答已采纳
2
回答
UIResponder链产生两个额外的响应程序
ios
、
swift
、
uikit
、
uiresponder
、
responder-chain
为此,我创建了扩展:import UIKit override func
touchesBegan
(_ touches: Set<UITouch
touchesBegan
(touches, with: event)} public override func
touchesBegan
(
touchesBegan
(touches, with: event)} extension
浏览 13
提问于2022-08-08
得票数 1
回答已采纳
2
回答
如何在
touchesBegan
中手动触发iOS值?
ios
、
objective-c
、
iphone
、
uiview
下面的代码位于父视图控制器.m中 { -(void)
touchesBegan
:(NSSet *)touches withEvent:(UIEvent然后调用代码: [self.xibSubView
touchesBegan
浏览 3
提问于2015-05-07
得票数 0
回答已采纳
1
回答
使用接口生成器连接父视图控制器的UIButton的子类IBAction?
ios
、
objective-c
、
uibutton
、
interface-builder
interface RSButton : UIButton UIButton实现如下所示: }} 有趣的是,我看到了问题的所在:我已经重写了
touchesBegan
浏览 5
提问于2014-05-08
得票数 1
回答已采纳
2
回答
touchesBegan
- iPhone应用程序UIView
iphone
、
ios
、
uiview
、
uiviewcontroller
、
touchesbegan
我有一个
touchesBegan
:方法,它工作得很好。然而,我最近在我的UIViewController中添加了一个UIView (一个按钮),现在这个按钮不能注册点击,但是我的
touchesBegan
:方法是注册的。怎样才能告诉我的
touchesBegan
:方法避开按钮呢?下面是我当前的
touchesBegan
:方法: NSLog
浏览 1
提问于2011-07-11
得票数 2
回答已采纳
1
回答
如果变量为null,如何形成if语句来重复方法?
ios
、
if-statement
、
crash
、
null
myNumberVariable) { [SecondVC performSelector:@selector(
touchesBegan
:withEvent:)];}-(void)
touchesBegan
浏览 4
提问于2013-05-12
得票数 0
回答已采纳
2
回答
UITableViewCell select在objective c中不起作用
ios
、
objective-c
、
uitableview
我在自定义的tableviewcell单元格中使用
touchesBegan
,如下所示: #import "UserListTableViewCell.h" } -(void)
touchesBegan
即使使用
touchesBegan
方法,如何使用
浏览 23
提问于2019-01-15
得票数 0
1
回答
在用于UIScrollView的iPhone的iOS5中未触发touchesMoved
iphone
、
uiscrollview
、
ios5
、
touchesmoved
outsideScrollView setContentSize:CGSizeMake(480,555)]; -(void)
touchesBegan
@implementation GameTableScrollView -(void)
touchesBegan
self.dragging) { [sel
浏览 0
提问于2011-10-17
得票数 2
1
回答
在协议扩展中覆盖
touchesBegan
swift
、
protocols
我正在尝试创建一个协议,这样我就可以制作一些按钮来遵守这个协议,并在调用
touchesBegan
时播放声音。addSound() { print("play some sound") } super.
touchesBegan
(touches, with: event) }这是可行的,但这意味着每次使用
浏览 1
提问于2016-11-17
得票数 1
2
回答
touchesBegan
EXC_BAD_ACCESS
ios
、
objective-c
- (void)
touchesBegan
:(NSSet *)touches withEvent:(UIEvent *)event { NSLog(@"%@", touches); [subview
touchesBegan
浏览 1
提问于2013-07-10
得票数 0
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
深入理解iOS图文混排原理并自定义图文控件
热门
标签
更多标签
云服务器
ICP备案
实时音视频
对象存储
云直播
活动推荐
运营活动
广告
关闭
领券