Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

colorWithPatternImage not working in io6?

I'm using colorWithPatternImage to change text color of UITextView. Its working fine in IO7 but not working in IO6.

Here is my Code :-

text.textColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"ColorName.png"]];
like image 389
iBhavin Avatar asked Jul 26 '14 04:07

iBhavin


1 Answers

The internals of UITextView changed hugely between iOS 6 and 7. Before iOS7, UITextView didn't support pattern colours for the text colour. Several components gained support for pattern colours in iOS 7, and UITextView was one of them.

like image 184
Simon Avatar answered Nov 04 '22 02:11

Simon