UITextView 设置边框
2024-09-04 22:20:32
UITextView * txtView = [[UITextView alloc] initWithFrame:CGRectMake(10, 50, 200, 50)];
txtView.backgroundColor = [UIColorclearColor];
txtView.layer.masksToBounds = YES;
txtView.layer.borderWidth = 1.0f;
txtView.layer.borderColor = [UIColorredColor].CGColor;
[self.view addSubview:txtView];
最新文章
- CSS3之3d变换与关键帧
- 跟我学Angular2(1-初体验)
- AnimationsDemo中的ZoomActivity代码分析
- Android布局尺寸思考
- Eclipse--Web项目中 .classpath、mymetadata、project文件的功用
- linux 远程桌面连接
- HDU 1598 find the most comfortable road (MST)
- Python学习笔记 第二课 循环
- HDU 4414 Finding crosses (DFS + BFS)
- NSIS:使用nsWindows.nsh头文件调整窗体大小
- Pyhton编程(一)之第一个Pyhton程序
- 斑马ZPL指令加入如换行、回车等控制符的方法
- VC++、MFC Sqlite3数据库的使用
- 彻底解决COM端口被占用(在使用中)问题的办法
- Maxim and Array CodeForces - 721D (贪心)
- c# 二维list排序和计时
- 【php】---mysql语法增、删、改、查---【巷子】
- Intel Code Challenge Final Round (Div. 1 + Div. 2, Combined) F - Uniformly Branched Trees 无根树->;有根树+dp
- bzoj 2748 DP
- kaggle Titanic
热门文章
- shell脚本查看服务器基本信息
- Dom4J读写xml
- pymongo: MongoClient opened before fork错误排解
- AlarmManager定时闹钟
- hdu 5480(维护前缀和+思路题)
- [thinkphp] APP_DEBUG开启之后session不稳定
- HDU 2955 【01背包+小数概率】
- 新疆大学ACM-ICPC程序设计竞赛五月月赛(同步赛)- 勤奋的杨老师(最长递增子序列)
- 洛谷——P1614 爱与愁的心痛
- tld自定义标签系列--使用body-content的作用--比较有用