iOS-在畫布上寫文字

iOS-在畫布上寫文字   有時候需要自定義一個UIView,然後在自定義的UIView上輸出一段文字。如下面的例子和演示圖。 需要注意的是以下幾點: 1. ios7 採用方法 [_text drawInRect:rect withAttributes:attribute]; 而ios7之前是採用[_text drawInRect:self.bounds withFont:font]。 2.CGS
相關文章
相關標籤/搜索