腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
2
回答
UIButton
添加到没有响应
选择器
的
UIButton
ios
、
objective-c
、
uibutton
我让在disclouser按钮中添加了一个ui按钮但是操作
选择器
不响应按钮,原因和应该做什么pinView.leftCalloutAccessoryViewbtnOnPopup.userInteractionEnabled = YES; [d
浏览 0
提问于2013-08-19
得票数 0
回答已采纳
7
回答
UIButton
addTarget
选择器
不
工作
ios
、
swift
、
uibutton
<xy { button.setTitleColorbutton.layer.borderColor = UIColor.black.cgColor button.
addTarget
self, action: #selector(click(sender:)
浏览 87
提问于2017-07-18
得票数 11
回答已采纳
4
回答
UIButton
addTarget
不
工作
ios
、
uibutton
c1.tag = 11; c2.tag = 12; c3.tag = 13; c4.tag = 21;
UIButton
*c5 = [[
UIButton
allo
浏览 2
提问于2013-02-26
得票数 4
回答已采纳
1
回答
addTarget
UIButton
不
工作
ios
、
uibutton
、
target
createSubject(name: String, color: UIColor, fromLoad: Bool){ let button :
UIButton
=
UIButton
(frame: createButtonCGRect())
浏览 9
提问于2017-07-04
得票数 0
1
回答
iPhone
UIButton
addTarget
不
工作
iphone
、
objective-c
、
cocoa-touch
、
uibutton
UIButtonsfor (int i=0; i<3; i++) { [[holesRow objectAtIndex:i]
addTarget
浏览 0
提问于2010-11-13
得票数 0
回答已采纳
3
回答
完成按钮在编程式UIBarButtonItem和UIPickerView中不起作用
iphone
、
objective-c
、
uipickerview
我正在以编程方式创建一个UIPickerView、UIToolbar、UIBarButtonItem和
UIButton
。我已经将自定义
选择器
设置为textView的inputView,除了完成按钮之外,一切都可以正常
工作
。
UIButton
*customButton = [[<em
浏览 0
提问于2013-10-29
得票数 1
1
回答
在
addTarget
中使用
选择器
作为变量
swift
我在Swift的
选择器
上有问题。我有以下代码行:button.
addTarget
(self, action: Selector(actionTarget), forControlEventsCould not find member 'TouchUpInside'button.
addTarget
(self, action "onPress:", forControlEvents我也尝
浏览 3
提问于2014-11-07
得票数 0
回答已采纳
2
回答
Swift:目标行动中的协议方法
ios
、
swift
、
uibutton
、
delegation
、
target-action
我想要一份协议: func cameraButtonDidPress(_ sender:
UIButton
)因此,我可以将任何客户端分配给一个按钮,例如:但是,它不编译,因为我必须在action中指定一个特定的函数,例如: cameraButton.
addTarget</e
浏览 2
提问于2018-08-14
得票数 3
回答已采纳
4
回答
在ios sdk中向
UIButton
添加操作
ios
、
cocoa-touch
我正在尝试以编程方式将一个按钮添加到视图中,并使用以下代码:[button
addTarget
:self action:@selector(
浏览 0
提问于2013-02-21
得票数 1
回答已采纳
6
回答
在Swift中发送到实例的iOS未识别的
选择器
ios
、
swift
当用户按下
UIButton
时,我在尝试让它
工作
时遇到了问题。我一直收到一个错误:未识别的
选择器
被发送到实例 super.viewDidLoad() self.view.addSubview(button)
浏览 12
提问于2014-06-11
得票数 7
回答已采纳
2
回答
UIButton
上的
addTarget
不
工作
ios
、
swift
、
uibutton
、
addtarget
我有一个UIView类 lazy var floatingButton :
UIButton
= { button.setBackgroundImage(#imageLiteral(resourceName:ic_add_circle_white_36pt"), for: .normal) button.tintColor = UICol
浏览 101
提问于2018-06-08
得票数 0
回答已采纳
1
回答
为什么自定义类不能成功地调用自己的类方法?iOS
ios
、
objective-c
、
methods
、
compiler-errors
、
selector
守则如下:A.This one可以
工作
(实例方法) { [btn
addTarget
:selfcreateButton:@selector(startBtnDidClicked:) added
浏览 2
提问于2015-08-23
得票数 0
回答已采纳
1
回答
Swift 3
UIButton
addTarget
不
工作
swift3
、
uibutton
我已经在我的UIView中创建了一个按钮,但不知道为什么它不能
工作
。在其他UIViews中,相同的代码
工作
得很好。这是我的密码。我尝试过用框架或使用约束来初始化按钮的不同组合,但这并没有什么区别。override func viewDidLoad() { let button=
UIButton
() button.setTitle("BACK", for:
浏览 4
提问于2017-03-17
得票数 1
回答已采纳
2
回答
addTarget
和addGestureRecognizer的不同行为
swift
、
uigesturerecognizer
、
selector
、
addtarget
我有一个函数,它创建一个以
选择器
函数为目标的按钮。按钮的地址被传递给handleSelectPhoto。{ button.
addTarget
(self, action: selector, for: .touchUpInside)} // Do something with
浏览 4
提问于2019-02-26
得票数 0
回答已采纳
2
回答
如何以编程方式连接
UIButton
和方法?
objective-c
在我的UIView中,显示了一个
UIButton
。 在同一个UIView类中,我有一个希望在按下按钮时执行的方法。
浏览 3
提问于2011-11-23
得票数 4
回答已采纳
1
回答
具有目标
选择器
的快速访问控制
ios
、
swift
、
selector
UIViewController { super.viewDidLoad() self.view.addSubview(letterButton) letterButton.
addTarget
(self,:Selector("buttonDidTap:"), f
浏览 4
提问于2014-07-31
得票数 43
回答已采纳
5
回答
如何为
UIButton
添加操作
iphone
、
objective-c
、
ios
、
ios4
请任何人告诉我如何为
UIButton
添加动作。
UIButton
*btn = [
UIButton
buttonWithType:UIButtonTypeRoundedRect];[btn setTitle:@"Play" forState:UIControlStateNormal]; [btn
addTarget
浏览 0
提问于2011-12-01
得票数 10
2
回答
以编程的方式快速添加按钮
ios
、
swift
、
uibutton
、
addtarget
我试图以编程方式添加按钮,创建了按钮,它在应用程序中显示,但问题是,当我用.
addTarget
编写#selector时会出现错误(它成功构建,但操作不起作用),我试图编写playAction()、playActionplayPauseButton.
addTarget
(self, action: #selector(playAction(sender:)), for: .touchUpInside) funcplayAction(sender:
UIButton
){}
浏览 12
提问于2020-06-04
得票数 0
回答已采纳
2
回答
如何以编程方式为CallBacks设置
UIButton
?
objective-c
、
cocoa-touch
人工建造:{ [objectName
addTarget
:self action:@selector(funcName
浏览 5
提问于2012-06-24
得票数 0
回答已采纳
3
回答
添加目标时出现Swift错误
ios
、
swift
每次我点击addButton时,我都会收到一个无法识别的
选择器
发送给实例crash/error。我在过去的一个小时里寻找答案,但没有找到。请帮帮忙。@IBOutlet var addButton:
UIButton
! addButton.<em
浏览 0
提问于2017-02-20
得票数 0
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
CSS-提升 CSS 选择器性能
前端开发规范——三、CSS性能优化
Shopify如何添加客户货币下拉列表货币选择器
聊聊前端中的页面样式CSS
公众号文章排版学习(五)
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券