在uitextview周围添加自定义边框,但几乎没有限制 [英] Adding custom border around uitextview but little beyond its bounds

查看:55
本文介绍了在uitextview周围添加自定义边框,但几乎没有限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何才能在uitextview的边界之外添加边框.我可以提供边框的位置还是必须添加自定义边框并为其指定位置.我们将为您提供帮助.

How can i add border to uitextview little beyond its bounds. Can i give the location for border or do i have to add custom border and give position to it.Any help will be appreciated.

推荐答案

这很容易.您必须添加石英核心框架

it's easy task. you have to add quartz core framework

并编写以下行

CALayer *imageLayer = textView.layer;
[imageLayer setCornerRadius:10];
[imageLayer setBorderWidth:1];
imageLayer.borderColor=[[UIColor lightGrayColor] CGColor];

这篇关于在uitextview周围添加自定义边框,但几乎没有限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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