腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
4
回答
UIButton
addTarget
不
工作
、
c1.tag = 11; c2.tag = 12; c3.tag = 13; c4.tag = 21;
UIButton
*c5 = [[
UIButton
allo
浏览 2
提问于2013-02-26
得票数 4
回答已采纳
1
回答
addTarget
UIButton
不
工作
、
、
createSubject(name: String, color: UIColor, fromLoad: Bool){ let button :
UIButton
=
UIButton
(frame: createButtonCGRect())
浏览 9
提问于2017-07-04
得票数 0
1
回答
iPhone
UIButton
addTarget
不
工作
、
、
、
UIButtonsfor (int i=0; i<3; i++) { [[holesRow objectAtIndex:i]
addTarget
浏览 0
提问于2010-11-13
得票数 0
回答已采纳
2
回答
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
回答
Swift 3
UIButton
addTarget
不
工作
、
我已经在我的UIView中创建了一个按钮,但不知道为什么它不能
工作
。在其他UIViews中,相同的代码
工作
得很好。这是我的密码。我尝试过用框架或使用约束来初始化按钮的不同组合,但这并没有什么区别。override func viewDidLoad() { let button=
UIButton
() button.setTitle("BACK", for:
浏览 4
提问于2017-03-17
得票数 1
回答已采纳
7
回答
UIButton
addTarget
选择器
不
工作
、
、
<xy { button.setTitleColorbutton.layer.borderColor = UIColor.black.cgColor button.
addTarget
self, action: #selector(click(sender:)
浏览 87
提问于2017-07-18
得票数 11
回答已采纳
1
回答
以编程方式将按钮放置在图像上
、
、
我编写了以下代码:[buttonPrint setImagestampa.png"] forState:UIControlStateNormal];[buttonPrint
addTarget
mail.png"] forState:UIControlStateNormal]; butt
浏览 0
提问于2012-09-24
得票数 0
回答已采纳
4
回答
ios中的
UIButton
AddTarget
(
不
工作
-崩溃)
、
、
我已经通过编程创建了
UIButton
,它被添加到同样是通过编程创建的UIViewController中。我不知道该把什么叫做
AddTarget
。我目前已经在
addtarget
中传递了optionView.self optionView.view.frame=CGRectMake(0, 0, 960, 640);
浏览 0
提问于2012-10-23
得票数 2
回答已采纳
2
回答
UIButton
添加到没有响应选择器的
UIButton
、
、
*detailBtn=[
UIButton
buttonWithType:UIButtonTypeDetailDisclosure];[detailBtn
addTarget
:self action:@selector(showRoute:) forControlEvents:UIControlEventTouchUpInsidewhiteColor]; [btnOnPopup
addTarget
:self action:@selector(showRo
浏览 0
提问于2013-08-19
得票数 0
回答已采纳
1
回答
UIButton
addTarget
在UIViewController的子类中
不
工作
。
、
、
NSMutableArray *actionConts = [[NSMutableArray alloc] init];
UIButton
*btn = [
UIButton
buttonWithType:UIButtonTypeCustom]; actionConts[i] =
浏览 2
提问于2014-08-29
得票数 0
2
回答
Swift4
addTarget
at
UIButton
不
工作
于UIView
、
、
、
我以编程的方式创建了一个
UIButton
并将它添加到一个子视图中。不过,
AddTarget
并不在那里
工作
。只有当我将按钮添加到主视图中时,
AddTarget
才能
工作
。class ViewController: UIViewController { @objc func TestPressed(sender:
UIButton
func ButtonCreate () { let button =
UIButton</e
浏览 0
提问于2018-03-30
得票数 0
回答已采纳
1
回答
为什么
UIButton
不出现在屏幕上?
、
、
我创建了
UIButton
,但是它没有出现在屏幕上。In .h文件:@property (weak, nonatomic) IBOutletUIImage * Image1;_button = [
UIButton
buttonWithType:UIButtonTypeCustom]; [_button
addTarget
setBackgroundImage:_Image1 forState:U
浏览 1
提问于2016-06-30
得票数 0
回答已采纳
1
回答
Swift 3- CGAffineTransform
不
工作
、
、
、
我正在以编程方式创建一个按钮,而CGAffineTransform在我的项目中添加
addTarget
时
不
工作
,为什么?编辑: btnButton.setTitle("iButton", for: .normal)
浏览 2
提问于2017-07-31
得票数 2
回答已采纳
5
回答
如何在
addtarget
函数中发送附加参数?
、
、
请告诉我,如何在swift 2.2中的
addtarget
函数中发送额外的参数?示例: print(“i am here“)至 func myFunc(sender:
UIButton
,parameter:String
浏览 0
提问于2016-06-16
得票数 4
1
回答
多点点击
UIButton
和访问按钮的不同行为
、
、
接下来的问题可能是阶段,我实现了gestureRecognizer,这是正确的
工作
,但是如何让用户点击哪个按钮来访问这些按钮事件的 if ([touch.view isKindOfClass:[
UIButton
浏览 2
提问于2012-01-11
得票数 0
回答已采纳
1
回答
UIScrollView上的
UIButton
无法
工作
*myButton = [
UIButton
buttonWithType:UIButtonTypeRoundedRect];myButton.showsTouchWhenHighlighted = YES;在这种情况下按钮可以
工作
(调用show:),但是使用[myLabel addSubview:myButton];按钮不能
工作
。-编辑解决方案-谢
浏览 0
提问于2010-04-07
得票数 0
回答已采纳
4
回答
在ios sdk中向
UIButton
添加操作
、
我正在尝试以编程方式将一个按钮添加到视图中,并使用以下代码:[button
addTarget
:self action:@selector(
浏览 0
提问于2013-02-21
得票数 1
回答已采纳
3
回答
完成按钮在编程式UIBarButtonItem和UIPickerView中不起作用
、
、
我正在以编程方式创建一个UIPickerView、UIToolbar、UIBarButtonItem和
UIButton
。我已经将自定义选择器设置为textView的inputView,除了完成按钮之外,一切都可以正常
工作
。
UIButton
*customButton = [[
UIButton
浏览 0
提问于2013-10-29
得票数 1
1
回答
以编程方式添加的按钮不起作用
、
、
为什么我的按钮
不
工作
?提前谢谢。
UIButton
*currentGamesButton = [
UIButton
buttonWithType:UIButtonTypeCustom];[currentGamesButton
addTarget
:self action:@selector
浏览 2
提问于2012-04-19
得票数 1
回答已采纳
1
回答
在touchesMoved之后调用touchesEnded并举起手指
、
、
我正在尝试播放不同的动画和声音,这取决于用户按下的按钮。按钮的形状各不相同,我需要在用户按住按钮时播放声音,并在用户抬起手指时停止按钮。我认为使用touchesBegan和touchesMoved会很容易。所以我想我可以创建两个整数,我将在touchesBegan中设置一个整数的值,然
浏览 0
提问于2012-10-11
得票数 0
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
当本场VOR/DME不工作以后
关于setInterval切换页面时不工作
RSCONN01发送邮件不工作
为何机器人抢不走你的工作
淘宝网页“摸鱼模式”引热议 大家渴望不内耗不内卷的工作状态
热门
标签
更多标签
云服务器
ICP备案
对象存储
腾讯会议
云直播
活动推荐
运营活动
广告
关闭
领券