iOS UIView及其子控件的常用设置
2016-03-28 17:12
501 查看
为控件添加边框
[objc] viewplain copy
view.layer.borderWidth = 1;
view.layer.borderColor = [[UIColor blackColor] CGColor];
设置button为不能点击且变灰
[objc] viewplain copy
button.userInteractionEnabled=NO;
button.alpha=0.4;
相关文章推荐
- 利用requests库post一张图片请求
- UITableView索引
- easyUI 转为中文
- UI全屏设置
- alertController和UIAlertView 使用示例
- vs2012 C# 黑盒测试,白盒测试,UI测试
- 关于finished with non-zero exit value 1、2、3的bug解决总结
- 深度解析Java8 – AbstractQueuedSynchronizer的实现分析(下)
- LeetCode 36 Valid Sudoku My Submissions Question
- 数据加载后刷新UI界面
- 【iOS开发-103】解决方案:iOS8.1中UIBarButtonItem的setTitleTextAttributes对Disabled颜色设置无效
- 浅谈Vue.js
- 解决PKIX:unable to find valid certification path to requested target 的问题
- jsp内置对象request中getParameter方法与get/setAttribute方法的区别
- codeforces_600B. Queries about less or equal elements(排序二分)
- The Ultimate Guide To iPhone Resolutions
- UICollectionview
- mac下CornerstoneSVN出错 Description : The working copy is locked due to a previous error
- no package identifier when getting value for resource number 0x00000005
- 【EJB学习笔记】——JMS和消息驱动Bean