button点击无反应
来源:互联网 发布:火车采集器 linux 编辑:程序博客网 时间:2024/04/28 03:40
我的代码:
{ UIImageView *rjUnpBagV=[[UIImageView alloc]initWithFrame:Frame(0, 0, ScreenWidth, ScreenHeight)]; self.rjUnpBagV.backgroundColor=[UIColor whiteColor]; [self.view addSubview:self.rjUnpBagV]; UIButton *rjPublishBtn=[UIButton buttonWithType:UIButtonTypeSystem]; rjPublishBtn.frame=Frame(ScreenWidth/4, rjUnpImgV.frame.origin.y+rjUnpImgV.frame.size.height+10, ScreenWidth/2, 30); [rjPublishBtn setTitle:@"发布职位" forState:UIControlStateNormal]; [rjPublishBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; [rjPublishBtn setBackgroundColor:[UIColor colorWithRed:0.33 green:0.79 blue:0.76 alpha:1]]; [self.rjUnpBagV addSubview:rjPublishBtn]; [rjPublishBtn addTarget:self action:@selector(rjPublishBtnAction) forControlEvents:UIControlEventTouchUpInside];}-(void)rjPublishBtnAction{ NSLog(@"点击");}
btn不能点击的原因-----父视图没有开用户交互的话,子视图也不能点击
UIImageView是需要开用户交互的。
0 0
- button点击无反应
- 点击button无反应
- Android button按键点击无反应
- iOS-Button点击无反应的原因
- input type button checkbox onclick 点击失效 无反应
- C# button按键无反应
- android在edittext中点击button一次无反应,edittext失去焦点
- 解决ie点击无反应
- andorid,listview点击无反应
- 部署按钮点击无反应
- WKWebView 点击链接无反应
- Listiew的Item点击无反应(在item中有Button等抢焦点的控件存在时)
- iOS button 点击无效果
- button点击无动作触发
- IE点击链接无反应修复.bat
- 弹出窗口点击无反应 错误笔记
- 关于 myeclipse 点击 发布无反应
- CSharp_exe执行文件点击运行无反应;
- 十五.设置UIScrollView滚动速度
- HTML5之canvas3
- RPi--lab8网络矩阵显示
- mac 安装tensorflow
- sift
- button点击无反应
- 益签到软件系统
- public void onItemClick(AdapterView<?> arg0, View view, int position, long arg3)参数解析
- android代码的形式让button变成圆角 透明,如图
- rcnn、fast-rcnn和faster-rcnn
- 空间FFT确定目标位置算法matlab仿真
- 如何在Mongodb中实现数据超时自动删除功能?
- opencv-3.1.0 CMake出现 Downloading opencv_ffmpeg.dll...
- Android事件分发机制完全解析,带你从源码的角度彻底理解(上)