iOS-在画布上写文字

iOS-在画布上写文字   有时候需要自定义一个UIView,然后在自定义的UIView上输出一段文字。如下面的例子和演示图。 需要注意的是以下几点: 1. ios7 采用方法 [_text drawInRect:rect withAttributes:attribute]; 而ios7之前是采用[_text drawInRect:self.bounds withFont:font]。 2.CGS
相关文章
相关标签/搜索