腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(9999+)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
3
回答
addTarget
:self与
addTarget
:nil
当我添加一个按钮programmatically.When时,我有点困惑,我们给按钮分配了一个目标,如下所示:和 [button
addTarget
:nil action:@selector(CallMe) forControlEvents如果有人能给你解释一下
addTarget
specially.Thank的工作原理,那会更有帮助。帮助将会被分配。
浏览 5
修改于2013-07-10
得票数 7
回答已采纳
1
回答
addTarget
to UIRefreshControl()
refresher = UIRefreshControl()refresher.
addTarget
(self, action: "refreshed", forControlEvents: UIControlEvents.ValueChanged) refresher.
addTarget
(self,action: "refreshed", forControlEven
浏览 1
修改于2016-01-05
得票数 1
回答已采纳
4
回答
定制UIView
addTarget
?
我希望能够像调用
addTarget
一样调用UIButton。
浏览 9
修改于2015-11-02
得票数 9
1
回答
覆盖
addTarget
方法
因此,我认为我需要重写
addTarget
方法,以便保留UIControlEvents变量。 那么,有谁知道如何实现
addTarget
方法以保留它应该具有的功能而不覆盖它呢?
浏览 6
提问于2012-08-18
得票数 1
1
回答
AddTarget
到UIView
当我初始化它时,我想向它添加一个自定义目标,如下所示: [myControl
addTarget
:self action:@selector(turnOn) forControlEvents:UIControlEventValueChanged
浏览 2
提问于2013-03-28
得票数 1
回答已采纳
1
回答
addTarget
安全吗?
最近,我对
addTarget
()在cellForRowAtIndexPath中使用UITableViewCell表示怀疑。我也渴望知道从UITableViewCell收听按钮事件的最佳实践是什么。当我看到我没有办法注销添加到
addTarget
中的UIButton中的UITableViewCell侦听器时,我的困惑就开始了:cell.button.
addTarget
我不确定这个过程是自动的还是非自动的(对于
addTarget
机制),我也没有在Apple中找到这样的引用(至少我
浏览 3
修改于2015-08-13
得票数 1
4
回答
UIButton
addTarget
不工作
PaiLifePageDetail alloc] initWithDataSource:c pageIndex:1]; { [b
addTarget
浏览 2
修改于2013-02-26
得票数 4
回答已采纳
1
回答
对
addTarget
:action:forControlEvents的
addTarget
指针行为感到困惑:
视图也有一个按钮,因此在init方法中,我还将按钮的目标设置为self.delegate,即为nil: [myButton
addTarget
:self.delegate action:@selector我想知道这最终是如何工作的,因为我的理解是
addTarget
:action:forControlEvents以id作为目标,并且指针应该在Obj-C中通过值传递。因此,我对为什么在调用
addTarget
方法之后更新最初的nil值指针感到非常困惑。
浏览 0
提问于2014-06-22
得票数 0
1
回答
addTarget
UIButton不工作
color button.isOpaque = false //button.
addTarget
(self, action: #selector(self.deleteSubject(selecto
浏览 9
提问于2017-07-04
得票数 0
2
回答
飞驰UIButton
addTarget
自动发射
我的
addTarget
in UIButton有个小问题。当我运行我的应用程序时,我的函数会自动启动,而他必须按下UIButton才能启动。我不知道我的问题在哪里。, fullWidth, rowHeight) BTN_happy.
addTarget
浏览 5
修改于2015-12-16
得票数 0
2
回答
addTarget
:action:forControlEvents:从UITableViewCell
在cellForRowAtIndexPath方法中,我[cell.secondcheckmark
addTarget
:self action:@selector(checkmarkPressed:) forControlEvents:UIControlEventTouchUpInside]; [cell.thirdchec
浏览 1
提问于2011-12-13
得票数 0
回答已采纳
2
回答
Swift -
addTarget
()不使用addSubview()
View Profile", for: .normal) goToProfileButton.
addTarget
浏览 30
修改于2019-04-06
得票数 0
回答已采纳
1
回答
UIButtonClass
addTarget
新视图问题
我已经创建了一个自定义UI按钮类,并且我正在尝试在我的UIViewController类中为这些按钮添加特定的目标,因为我知道我不能这样做。这是我到目前为止所知道的: override init(frame: CGRect){ setConfig() required init?(coder: NSCoder) { setConfig()
浏览 0
修改于2020-11-25
得票数 0
1
回答
方法
addTarget
:action:forControlEvents: programmed?
在UIKit中,UIControl有以下方法:我很想知道这些是如何编程的
浏览 3
修改于2011-05-21
得票数 1
回答已采纳
2
回答
UIButton
addTarget
没有接到电话
(x: 2, y: 2, width: 18, height: 18) chk.isUserInteractionEnabled = true // I also tried the following: // chk.
addTarget
浏览 4
修改于2020-07-22
得票数 0
回答已采纳
1
回答
如何传递多参数
addTarget
?
如何经过
addTarget
action?如果可能的话,我需要执行哪些更改?button.
addTarget
(self, action: #selector(ViewController.buttonClicked(_:
浏览 0
修改于2016-07-08
得票数 1
回答已采纳
0
回答
Swift - UIControl
addTarget
不工作
MyViewControl { c.
addTarget
(如果我将UIButton添加到MyViewControl中,并对此按钮执行相同的操作(
addTarget
),则可以正确调用回调。
浏览 7
提问于2017-06-14
得票数 1
回答已采纳
1
回答
iPhone UIButton
addTarget
不工作
[holesRow objectAtIndex:i] setBackgroundColor:[UIColor blueColor]]; [[holesRow objectAtIndex:i]
addTarget
浏览 0
修改于2011-12-11
得票数 0
回答已采纳
1
回答
对于NSInvocation/invoke对,
addTarget
失败
NSStringFromSelector(@selector(test)), @"target" : testInvocation }; [button2
addTarget
浏览 4
提问于2015-04-30
得票数 0
回答已采纳
1
回答
UIButton "
addTarget
“应用程序崩溃
256.0f, 32.0f)]; [loginButton
addTarget
这是因为我在.h文件中没有button/IBAction引用,还是可以在.m文件中使用
addTarget
方法?
浏览 3
修改于2012-01-09
得票数 2
回答已采纳
第 2 页
第 3 页
第 4 页
第 5 页
第 6 页
第 7 页
第 8 页
第 9 页
第 10 页
第 11 页
点击加载更多
领券