2010-07-07 82 views

回答

0

不是。不过,您可能可以使用CSS样式(使用text-shadow属性)<textarea>UIWebView中。

+0

您确实可以在iOS6中添加发光。请参阅下面的答案。 – phatmann 2014-04-30 22:03:07

1

这里有一些代码将一个红色的光芒添加到UITextView。需要iOS 6+。调整参数的口味:

NSShadow *shadow   = [NSShadow new]; 
shadow.shadowBlurRadius = 5; 
shadow.shadowColor  = [UIColor redColor]; 
shadow.shadowOffset  = CGSizeMake(0, 0); 

NSDictionary *attributes = @{NSShadowAttributeName:shadow}; 

textView.attributedText = [[NSAttributedString alloc] 
             initWithString:title 
              attributes:attributes];