如何为UITextView设置圆角? [英] how to set rounded corner for a UITextView?

查看:107
本文介绍了如何为UITextView设置圆角?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何为UITextView设置圆角?

how to set rounded corner for a UITextView ?

推荐答案

拳头导入文件

#import <QuartzCore/QuartzCore.h>

然后设置文本视图的属性

and then set the property of your text view

yourTextViewName.layer.cornerRadius = kCornerRadius;

其中 kCornerRadius 是你设定的常数角落的半径

where kCornerRadius is a constant you set as a radius for corner

这篇关于如何为UITextView设置圆角?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆