iphone中,在编辑文本时怎么设置UITextView的边框颜色?
2014-03-25 09:40
363 查看
加上:
#Import <QuartzCore/QuartzCore.h>用下面的代码就行:
- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField { textField.layer.cornerRadius=8.0f; textField.layer.masksToBounds=YES; textField.layer.borderColor=[[UIColor redColor]CGColor]; textField.layer.borderWidth= 1.0f; return YES; }
转载:http://ask.csdn.net/questions/1836
相关文章推荐
- 为UIView及其子类添加圆角边框
- How To Build Your First F**king STAF Service
- 1 IntelliSense: #error 指令: Please use the /MD switch for _AFXDLL builds
- UVa540 Team Queue
- WinCE MUI的实现
- NGUI如何使用汉字
- WINCE 6.0编译西班牙语UI,葡萄牙语UI
- iOS UIActionSheet的使用
- ARDUINO 串口回显数据
- Permutation Sequence -- LeetCode
- NSBundle控件和UIImageView和UIButton区别
- Android4.2.2 SurfaceFlinger之图形缓存区申请与分配dequeueBuffer
- Android4.2.2 SurfaceFlinger之Layer和Bufferqueue的创建过程
- emctl start dbconsole遇到错误:OC4J Configuration issue
- ios 中的UI控件学习总结(1)
- LeetCode Unique Binary Search Trees
- 错误:org.hibernate.PropertyValueException: not-null property references a null
- rebuild online意外终止导致ora-8104错误的实验
- 白露卓爱(二): Bluedroid从enable()开死
- Adobe Flash builder 4.7 for Mac 破解方法,不用序列号