UILabel显示带颜色边的文字

需求如图,UILabel要实现带红色边的文字显示。 git 一、新建UILabel的子类JXBorderLabelgithub 二、重写drawRect:方法web #import "JXBorderLabel.h" @implementation JXBorderLabel - (void)drawRect:(CGRect)rect { //1.获取上下文 CGContext
相关文章
相关标签/搜索